Submission #782124

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

Compilation message (stderr)

coins.cpp:2:25: error: expected ';' before ',' token
    2 | using v=std::vector<int>, F=for(int i=0;i<64;i++)c^=b[i]*i;return{c};}
      |                         ^
      |                         ;
coins.cpp:2:41: error: 'i' does not name a type
    2 | using v=std::vector<int>, F=for(int i=0;i<64;i++)c^=b[i]*i;return{c};}
      |                                         ^
coins.cpp:2:46: error: 'i' does not name a type
    2 | using v=std::vector<int>, F=for(int i=0;i<64;i++)c^=b[i]*i;return{c};}
      |                                              ^
coins.cpp:2:60: error: expected unqualified-id before 'return'
    2 | using v=std::vector<int>, F=for(int i=0;i<64;i++)c^=b[i]*i;return{c};}
      |                                                            ^~~~~~
coins.cpp:2:70: error: expected declaration before '}' token
    2 | using v=std::vector<int>, F=for(int i=0;i<64;i++)c^=b[i]*i;return{c};}
      |                                                                      ^
coins.cpp:3:1: error: 'v' does not name a type
    3 | v coin_flips(v b,int c){F
      | ^