Submission #565351

#TimeUsernameProblemLanguageResultExecution timeMemory
565351RifalQuestion (Grader is different from the original contest) (CEOI14_question_grader)C++14
Compilation error
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; }

Compilation message (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