제출 #1004720

#제출 시각아이디문제언어결과실행 시간메모리
1004720LilPluton게임 (IOI14_game)C++14
0 / 100
1 ms440 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; int c[N]; void initialize(int n) { } int hasEdge(int u, int v) { ++c[u > v ? u : v] == (u > v ? u : v); }

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

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:24:24: warning: value computed is not used [-Wunused-value]
   24 |     ++c[u > v ? u : v] == (u > v ? u : v);
      |     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
game.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
   25 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...