Submission #1175115

#TimeUsernameProblemLanguageResultExecution timeMemory
1175115khonthaikubA + B (IOI24_aplusb)C++20
Compilation error
0 ms0 KiB
/******************************************************************************

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
#include <bits/stdc++.h>
using namespace std;

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

int main()
{
    sum(1,1);

    return 0;
}

Compilation message (stderr)

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