제출 #864236

#제출 시각아이디문제언어결과실행 시간메모리
864236abcvuitunggioCoins (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;return V coin_flips(V b, int c) { f {c}; } int find_coin(V b) { f 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;return
      |                                ^
coins.cpp:9:5: note: in expansion of macro 'f'
    9 |     f c;
      |     ^
coins.cpp:9:7: error: 'c' was not declared in this scope
    9 |     f c;
      |       ^