제출 #1369291

#제출 시각아이디문제언어결과실행 시간메모리
1369291Almonther게임 (IOI14_game)C++20
컴파일 에러
0 ms0 KiB
#include<iostream>
using namespace std;int cnt[];void initialize(int n){}int hasEdge(int u, int v){return ++cnt[max(u,v)]&&cnt[max(u,v)]==max(u,v);}

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

game.cpp:2:25: error: storage size of 'cnt' isn't known
    2 | using namespace std;int cnt[];void initialize(int n){}int hasEdge(int u, int v){return ++cnt[max(u,v)]&&cnt[max(u,v)]==max(u,v);}
      |                         ^~~