Submission #864234

#TimeUsernameProblemLanguageResultExecution timeMemory
864234abcvuitunggioCoins (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; return V coin_flips(V b, int c) { f {c}; } int find_coin(V b) { f 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; return
      |                                  ^
coins.cpp:9:5: note: in expansion of macro 'f'
    9 |     f c;
      |     ^
coins.cpp:9:7: error: 'c' was not declared in this scope
    9 |     f c;
      |       ^