제출 #734046

#제출 시각아이디문제언어결과실행 시간메모리
734046guagua0407게임 (IOI14_game)C++17
컴파일 에러
0 ms0 KiB
const int mxn=1505; int cnt[mxn]; int n; void initialize(int N){ n=N; } int hasEdge(int a, int b){ if(a>b) swap(a,b); cnt[b]++; if(cnt[b]==b) return 1; return 0; }

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

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:8:13: error: 'swap' was not declared in this scope
    8 |     if(a>b) swap(a,b);
      |             ^~~~