제출 #782075

#제출 시각아이디문제언어결과실행 시간메모리
782075Dan4LifeCoins (IOI17_coins)C++17
컴파일 에러
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;}

컴파일 시 표준 에러 (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;}
      |               ^