제출 #1369280

#제출 시각아이디문제언어결과실행 시간메모리
1369280Almonther게임 (IOI14_game)C++20
컴파일 에러
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();
// }

컴파일 시 표준 에러 (stderr) 메시지

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