Submission #789411

#TimeUsernameProblemLanguageResultExecution timeMemory
789411JoibanglaCyberland (APIO23_cyberland)C++17
Compilation error
0 ms0 KiB
#include<cyberland.h> #include<bits/stdc++.h> #include<algorithm> using namespace std; int main(){ double solve(int n,int m,int h,int k,std::vector<int>x, std::vector<int>y, std::vector<int>c, std::vector<int>arr); int i; if(n/i){ cout<<"i"<<"\n"; } else{ cout<<"-1"<<"\n"; } } } }

Compilation message (stderr)

cyberland.cpp: In function 'int main()':
cyberland.cpp:10:4: error: 'n' was not declared in this scope
   10 | if(n/i){
      |    ^
cyberland.cpp: At global scope:
cyberland.cpp:17:1: error: expected declaration before '}' token
   17 | }
      | ^
cyberland.cpp:18:1: error: expected declaration before '}' token
   18 | }
      | ^