Submission #864240

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

Compilation message (stderr)

coins.cpp: In function 'int find_coin(std::vector<int>)':
coins.cpp:4:34: error: 'c' was not declared in this scope
    4 | #define F for (int i=0;i<64;i++) c^=b[i]*i;
      |                                  ^
coins.cpp:10:5: note: in expansion of macro 'F'
   10 |     F
      |     ^
coins.cpp:11:12: error: 'c' was not declared in this scope
   11 |     return c;
      |            ^