Submission #861673

#TimeUsernameProblemLanguageResultExecution timeMemory
861673cirnepqCoins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include "coins.h" std::vector<int> coin_flips(std::vector<int> b, int c) { std::vector<int> flips(1); if (c==0) { if (b[0]==1) flips[0]=63; else flips[0]=1; } else { if (b[0]==0) flips[0]=63; else flips0]=1; } return flips; } int find_coin(std::vector<int> b) { if (b[0] == 1){ return 0; } return 1; }

Compilation message (stderr)

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:11:8: error: 'flips0' was not declared in this scope; did you mean 'flips'?
   11 |   else flips0]=1;
      |        ^~~~~~
      |        flips