Submission #782075

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

Compilation message (stderr)

coins.cpp:1:18: warning: extra tokens at end of #include directive
    1 | #include<vector> using v=std::vector<int>;
      |                  ^~~~~
coins.cpp:2:1: error: 'v' does not name a type
    2 | v coin_flips(v b, int c){for(int i=0;i<64;i++)c^=b[i]*i;return{c};}
      | ^
coins.cpp:3:15: error: 'v' was not declared in this scope
    3 | int find_coin(v a){int x=0;for(int i=0;i<64;i++)x^=a[i]*i;return x;}
      |               ^