제출 #1004722

#제출 시각아이디문제언어결과실행 시간메모리
1004722LilPluton게임 (IOI14_game)C++14
컴파일 에러
0 ms0 KiB
#include "game.h" #include <bits/stdc++.h> #define OPT ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define intt long long #define ll long long #define pb push_back #define ff first #define arr array #define vll vector<int> #define rep(i,j,k) for(int i = j; i <= k; ++i) #define all(a) a.begin(),a.end() #define pii pair<int,int> #define endll '\n' using namespace std; const int INF = 1e9; const int N = 1e5 + 5; void initialize(int n) { } c[1506]; int hasEdge(int u, int v) { ++c[u > v ? u : v] == (u > v ? u : v); }

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

game.cpp:22:1: error: 'c' does not name a type
   22 | c[1506];
      | ^
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:25:7: error: 'c' was not declared in this scope
   25 |     ++c[u > v ? u : v] == (u > v ? u : v);
      |       ^
game.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
   26 | }
      | ^