Submission #1180913

#TimeUsernameProblemLanguageResultExecution timeMemory
1180913timkaA + B (IOI24_aplusb)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>

#define int long long

using namespace std;

const int mod = 1e9 + 7;
const int inf = 1e18;

int sum(int a, int b) 
{
    return a+b;
}

signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);

    int t = 1;
    // cin >> t;

    while (t--) {
        //solve();
        //cout << "\n";
    }
    
    return 0;
}
/*
n=6 6 3 5 2 4 1
n=5 1 5 3
*/

Compilation message (stderr)

/usr/bin/ld: /tmp/ccwBzWbU.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc9Wl87n.o:aplusb.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccwBzWbU.o: in function `main':
grader.cpp:(.text.startup+0x160): undefined reference to `sum(int, int)'
collect2: error: ld returned 1 exit status