Submission #108484
Source Code Expand
#include<iostream> using namespace std; string degs[17]={N,NNE,NE,ENE,E,ESE,SE,SSE,S,SSW,SW,WSW,W,WNW,NW,NNW,N}; int degn[17]={1124,3374,5624,7874,10124,12374,14624,16874,19124,21374,23624,25874,28125,30374,32624,34874,36001}; int diss[13]={0,3,16,34,55,80,108,139,172,208,245,285,327}; int main(){ int deg,dis; cin >> deg >> dis; dis=dis/6; if(dis/6<2){cout<<"C";} else{ for(int i=0;i<17;i++){ if((deg*10)<degn[i])cout<<degs[i];break; }} for(int i=12;i>-1;i--){ if(dis>=diss[i])cout<<i<<endl; } }
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | berotti3 |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 531 Byte |
Status | CE |
Compile Error
./Main.cpp:4:18: error: ‘N’ was not declared in this scope ./Main.cpp:4:20: error: ‘NNE’ was not declared in this scope ./Main.cpp:4:24: error: ‘NE’ was not declared in this scope ./Main.cpp:4:27: error: ‘ENE’ was not declared in this scope ./Main.cpp:4:31: error: ‘E’ was not declared in this scope ./Main.cpp:4:33: error: ‘ESE’ was not declared in this scope ./Main.cpp:4:37: error: ‘SE’ was not declared in this scope ./Main.cpp:4:40: error: ‘SSE’ was not declared in this scope ./Main.cpp:4:44: error: ‘S’ was not declared in this scope ./Main.cpp:4:46: error: ‘SSW’ was not declared in this scope ./Main.cpp:4:50: error: ‘SW’ was not declared in this scope ./Main.cpp:4:53: error: ‘WSW’ was not declared in this scope ./Main.cpp:4:57: error: ‘W’ was not declared in this scope ./Main.cpp:4:59: error: ‘WNW’ was not declared in this scope ./Main.cpp:4:63: error: ‘NW’ was not declared in this scope ./Main.cpp:4:66: error: ‘NNW’ was not declared in this sc...