Submission #789411

# Submission time Handle Problem Language Result Execution time Memory
789411 2023-07-21T11:03:16 Z Joibangla Cyberland (APIO23_cyberland) C++17
Compilation error
0 ms 0 KB
#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

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 | }
      | ^