Submission #576526

#TimeUsernameProblemLanguageResultExecution timeMemory
576526AGEChecker (COCI19_checker)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define int long long #define F first #define S second #define pb push_back using namespace std; const int N=1e6,M=3e3+2,mod=1e9+7; main() { int n; cin>>n; string s; cin>>s; map< pair<int, int> , int > mp; for(int i=0;i<n-3;i++){ int x,y,z; cin>>x>>y>>z; mp[{x,y}]=1; mp[{y,x}]=1; } int ok1=0,ok2=0; for(int i=1;i<=n;i+=2){ if(i+2>n) continue; if(mp[{i,i+2}]!=1) ok1=1; } for(int i=2;i<=n;i+=2){ if(i+2>n) continue; if(mp[{i,i+2}]!=1) ok2=1; } if(n%2==0&&ok1==0) cout<<"tecno"<<endl; else if(n%2!=0&&ok2==0) cout<<"tecno"<<endl; else cout<<"neispravna triangulacija"<<endl;

Compilation message (stderr)

checker.cpp:10:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   10 | main()
      | ^~~~
checker.cpp: In function 'int main()':
checker.cpp:60: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
   60 | 
      | 
checker.cpp:59:47: error: expected '}' at end of input
   59 |         cout<<"neispravna triangulacija"<<endl;
      |                                               ^
checker.cpp:11:1: note: to match this '{'
   11 | {
      | ^