Submission #648018

#TimeUsernameProblemLanguageResultExecution timeMemory
648018dutinmeowCoins (IOI17_coins)C++17
Compilation error
0 ms0 KiB
#include "coins.h" #include <vector> std::vector<int> coin_flips(std::vector<int> b, int c) { int cur = c; for (int i = 0; i < 64; i++) cur ^= b[i] * i; return {cur}; } int find_coin(std::vector<int> b) { int cur = 0; for (int i = 0; i < ) cur ^= b[i] * i; return cur; }

Compilation message (stderr)

coins.cpp: In function 'int find_coin(std::vector<int>)':
coins.cpp:13:22: error: expected primary-expression before ')' token
   13 |  for (int i = 0; i < )
      |                      ^
coins.cpp:13:21: error: expected ';' before ')' token
   13 |  for (int i = 0; i < )
      |                     ^~
      |                     ;