Submission #565343

# Submission time Handle Problem Language Result Execution time Memory
565343 2022-05-20T17:47:45 Z Rifal Question (Grader is different from the original contest) (CEOI14_question_grader) C++14
Compilation error
0 ms 0 KB
#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 encode (int n, int x, int y) {
  return (x + y) % 2;
}
int main()
{
    ios_base::sync_with_stdio(0);cout.tie(0);cin.tie(0);

    return 0;
}
#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 decode (int n, int q, int h) {
	return (q + h) % 2;
}
int main()
{
    ios_base::sync_with_stdio(0);cout.tie(0);cin.tie(0);
    
    return 0;
}

Compilation message

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

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