Submission #782104

#TimeUsernameProblemLanguageResultExecution timeMemory
782104Dan4LifeCoins (IOI17_coins)C++17
Compilation error
0 ms0 KiB
#include<vector> using I=int,v=std::vector<I>; #define F for(I i=0;i<64;i++)c^=b[i]*i; v coin_flips(v b,I c){F return{c};} I find_coin(v b){I c=0;F return c;}

Compilation message (stderr)

coins.cpp:2:12: error: expected ';' before ',' token
    2 | using I=int,v=std::vector<I>;
      |            ^
      |            ;
coins.cpp:4:1: error: 'v' does not name a type
    4 | v coin_flips(v b,I c){F return{c};}
      | ^
coins.cpp:5:1: error: 'I' does not name a type
    5 | I find_coin(v b){I c=0;F return c;}
      | ^