Submission #576645

#TimeUsernameProblemLanguageResultExecution timeMemory
576645AGEChecker (COCI19_checker)C++14
0 / 110
231 ms38824 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; int x[N],y[N],z[N]; vector< pair< int, int> >adj[N]; main() { int xx; cin>>xx; int n; cin>>n; string s; cin>>s; for(int i=0;i<n-3;i++){ cin>>x[i]>>y[i]>>z[i]; adj[x[i]].pb({y[i],z[i]}); adj[y[i]].pb({x[i],z[i]}); } cout<<"neispravno bojenje"<<endl; return 0; } /* 7 1223121 1 3 3 3 5 1 5 7 3 7 3 2 */

Compilation message (stderr)

checker.cpp:11:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   11 | main()
      | ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...