Submission #1004726

#TimeUsernameProblemLanguageResultExecution timeMemory
1004726LilPlutonGame (IOI14_game)C++14
0 / 100
1 ms348 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) { } int c[1506]; int hasEdge(int u, int v) { ++c[u > v ? u : v] == (u > v ? u : v); }

Compilation message (stderr)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:25:24: warning: value computed is not used [-Wunused-value]
   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 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...