Submission #1122998

#TimeUsernameProblemLanguageResultExecution timeMemory
1122998tubicationA + B (IOI24_aplusb)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define file(name) if (fopen(name".inp", "r")) { freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout); } #define synchronize {ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);} #define ll long long #define pii pair <int, int> #define fi first #define se second template<class X, class Y> bool maximize(X &x, const Y &y) { if (x < y) { x = y; return true; } else return false; } template <class X, class Y> bool minimize(X &x, Y y) { if (x > y) { x = y; return true; } return false; } const int nmax = 3e5 + 5; const ll mod = 1e9 + 7; const ll inf = 1e18; int sum(int a, int b) { return a + b; } int main() { }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccRQsk8E.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccVe7ifu.o:aplusb.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status