제출 #782124

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

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