제출 #554978

#제출 시각아이디문제언어결과실행 시간메모리
554978beaconmcGame (IOI14_game)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; long long sussy[1500]; ll N = 0; void initialize(int n){ for(int i=0; i<n; i++){ sussy[i] = 0; } N = n; } int hasEdge(int u, int v){ sussy[u] += 1; sussy[v] += 1; if (sussy[u] == N-1){ return 1; }else if (sussy[v] == N-1){ return 1; } return 0; }

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

game.cpp:5:1: error: 'll' does not name a type
    5 | ll N = 0;
      | ^~
game.cpp: In function 'void initialize(int)':
game.cpp:10:3: error: 'N' was not declared in this scope
   10 |   N = n;
      |   ^
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:15:19: error: 'N' was not declared in this scope
   15 |   if (sussy[u] == N-1){
      |                   ^