제출 #233474

#제출 시각아이디문제언어결과실행 시간메모리
233474limabeansXylophone (JOI18_xylophone)C++17
컴파일 에러
0 ms0 KiB
#include "xylophone.h" #include <bits/stdc++.h> using namespace std; template<typename T> void out(T x) { cout << x << endl; exit(0); } #define watch(x) cout << (#x) << " is " << (x) << endl typedef long long ll; const ll mod = 1e9+7; const int maxn = 1e6 + 5; int n; //grader // int query(int s, int t) { // } // void answer(int i, int a) { // assert(i>=1 && i<=n); // cout<<a<<"\n"; // } void solve(int N) { n = N; for (int i=1; i<=n; i++) { answer(i,i); } } int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); return 0; }

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

/tmp/ccxWRjf6.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccdHgcDg.o:xylophone.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status