제출 #565351

#제출 시각아이디문제언어결과실행 시간메모리
565351Rifal질문 (CEOI14_question_grader)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include <fstream> #define endl '\n' #define mod 32768 #define INF 100000000000000 //#define ll long long //#define cin fin //#define cout fout using namespace std; //ofstream fout("convention.out"); //ifstream fin("convention.in"); int main() { ios_base::sync_with_stdio(0);cout.tie(0);cin.tie(0); return 0; } int encode (int n, int x, int y) { return (x + y) % 2; }
#include <bits/stdc++.h> #include <fstream> #define endl '\n' #define mod 32768 #define INF 100000000000000 //#define ll long long //#define cin fin //#define cout fout using namespace std; //ofstream fout("convention.out"); //ifstream fin("convention.in"); int main() { ios_base::sync_with_stdio(0);cout.tie(0);cin.tie(0); return 0; } int decode (int n, int q, int h) { return (q + h) % 2; }

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

/usr/bin/ld: /tmp/ccOgrFOa.o: in function `main':
grader_encode.c:(.text.startup+0x0): multiple definition of `main'; /tmp/cc5UvdSa.o:encoder.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status

/usr/bin/ld: /tmp/ccCKtAsU.o: in function `main':
grader_decode.c:(.text.startup+0x0): multiple definition of `main'; /tmp/cchujELT.o:decoder.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status