제출 #344516

#제출 시각아이디문제언어결과실행 시간메모리
344516koketsuXoractive (IZhO19_xoractive)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #define pb push_back #define LL long long #define Kultivator ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); using namespace std; const LL Mxn = 1e6 + 7; const LL Mod = 1e9 + 7; const LL Inf = 1e14 + 7; int A[101]; int main() { //Kultivator; int N; cin >> N; for(int i = 1; i <= N; i++){ cout << "ask(" << i << ")" << '\n'; fflush(stdout); int P; cin >> P; A[i] = P; } cout << '\n'; for(int i = 1; i <= N; i++){ cout << A[i] << ' '; } }

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

/tmp/ccc2rlvh.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cchORjYA.o:Xoractive.cpp:(.text.startup+0x0): first defined here
/tmp/ccc2rlvh.o: In function `main':
grader.cpp:(.text.startup+0x164): undefined reference to `guess(int)'
collect2: error: ld returned 1 exit status