Submission #648017

#TimeUsernameProblemLanguageResultExecution timeMemory
648017dutinmeowCoins (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:11:18: error: found ':' in nested-name-specifier, expected '::'
   11 | int find_coin(std:vector<int> b) {
      |                  ^
      |                  ::
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 < )
      |                     ^~
      |                     ;