제출 #880518

#제출 시각아이디문제언어결과실행 시간메모리
880518Mr_Husanboy게임 (IOI14_game)C++17
컴파일 에러
0 ms0 KiB
#include "game.h" #include<bits/stdc++.h> template<typename T> int len(T &a){ return a.size(); } using namespace std; vector<int> cnt; void initialize(int N){ n = N; cnt.resize(n, n - 1); } int hasEdge(int u, int v){ if(u < v) swap(u, v); cnt[u] ++; return cnt[u] == u; }

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

game.cpp: In function 'void initialize(int)':
game.cpp:12:5: error: 'n' was not declared in this scope
   12 |     n = N;
      |     ^