Submission #1369280

#TimeUsernameProblemLanguageResultExecution timeMemory
1369280AlmontherGame (IOI14_game)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
#include "game.h"
using namespace std;
 
#define ll long long

ll cnt[1505]={};
void initialize(int n);
int hasEdge(int u, int v){
    if(u<v) swap(u,v);
    cnt[u]++;
    return cnt[u]==u
}
// void solve(){

// }
 
// int main(){
//     ios_base::sync_with_stdio(0);cin.tie(0);
//     int _=1;
//     // cin>>_;
//     while(_--) solve();
// }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:12:21: error: expected ';' before '}' token
   12 |     return cnt[u]==u
      |                     ^
      |                     ;
   13 | }
      | ~