제출 #864251

#제출 시각아이디문제언어결과실행 시간메모리
864251abcvuitunggioCoins (IOI17_coins)C++17
컴파일 에러
0 ms0 KiB
#define V std::vector <int> #define 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:1:16: error: 'vector' in namespace 'std' does not name a template type
    1 | #define V std::vector <int>
      |                ^~~~~~
coins.cpp:3:1: note: in expansion of macro 'V'
    3 | V coin_flips(V b, int c) {
      | ^
coins.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | #define V std::vector <int>
coins.cpp:1:16: error: 'vector' is not a member of 'std'
    1 | #define V std::vector <int>
      |                ^~~~~~
coins.cpp:5:15: note: in expansion of macro 'V'
    5 | int find_coin(V b) {
      |               ^
coins.cpp:1:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    1 | #define V std::vector <int>
      |                ^~~~~~
coins.cpp:5:15: note: in expansion of macro 'V'
    5 | int find_coin(V b) {
      |               ^
coins.cpp:1:24: error: expected primary-expression before 'int'
    1 | #define V std::vector <int>
      |                        ^~~
coins.cpp:5:15: note: in expansion of macro 'V'
    5 | int find_coin(V b) {
      |               ^