Submission #782089

#TimeUsernameProblemLanguageResultExecution timeMemory
782089Dan4LifeCoins (IOI17_coins)C++17
Compilation error
0 ms0 KiB
#include<vector> using 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){int c=0;F return x;}

Compilation message (stderr)

coins.cpp: In function 'v coin_flips(v, int)':
coins.cpp:4:28: error: expected ';' before 'return'
    4 | v coin_flips(v b, int c){F return{c};}
      |                            ^~~~~~
coins.cpp:4:38: warning: no return statement in function returning non-void [-Wreturn-type]
    4 | v coin_flips(v b, int c){F return{c};}
      |                                      ^
coins.cpp: In function 'int find_coin(v)':
coins.cpp:5:30: error: expected ';' before 'return'
    5 | int find_coin(v b){int c=0;F return x;}
      |                              ^~~~~~
coins.cpp:5:39: warning: no return statement in function returning non-void [-Wreturn-type]
    5 | int find_coin(v b){int c=0;F return x;}
      |                                       ^