제출 #1297094

#제출 시각아이디문제언어결과실행 시간메모리
1297094M_W_13게임 (IOI14_game)C++20
컴파일 에러
0 ms0 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define st first #define nd second #define pb push_back #define pii pair<int, int> #define all(a) a.begin(), a.end() int hasEdge(int u, int v) { int w = max(u, v); cnt[w]++; return (c[w] == w); }

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

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:15:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
   15 |     cnt[w]++;
      |     ^~~
      |     int
game.cpp:16:13: error: 'c' was not declared in this scope
   16 |     return (c[w] == w);
      |             ^