제출 #864243

#제출 시각아이디문제언어결과실행 시간메모리
864243abcvuitunggioCoins (IOI17_coins)C++17
컴파일 에러
0 ms0 KiB
#include "coins.h" #include <vector> #define V std::vector <int> #define F for(int i=0;i<64;i++)c^=b[i]*i; V coin_flips(V b, int c) { F return {c}; } int find_coin(V b) { F return c; }

컴파일 시 표준 에러 (stderr) 메시지

coins.cpp: In function 'int find_coin(std::vector<int>)':
coins.cpp:4:32: error: 'c' was not declared in this scope
    4 | #define F for(int i=0;i<64;i++)c^=b[i]*i;
      |                                ^
coins.cpp:10:5: note: in expansion of macro 'F'
   10 |     F
      |     ^
coins.cpp:11:12: error: 'c' was not declared in this scope
   11 |     return c;
      |            ^