(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #918735

#TimeUsernameProblemLanguageResultExecution timeMemory
918735ngano_upat_naCoins (IOI17_coins)C++17
0 / 100
2 ms1116 KiB
#include "bits/stdc++.h" #include "coins.h" using namespace std; vector<int> x, y; vector<int> coin_flips(vector<int> b, int c) { x = b; y = b; y[c] = 1 - y[c]; } int find_coin(vector<int> b) { for (int i=0; i<64; i++) { if (x[i] != y[i]) return i; } }

Compilation message (stderr)

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
coins.cpp: In function 'int find_coin(std::vector<int>)':
coins.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
   17 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...