Submission #12881

#TimeUsernameProblemLanguageResultExecution timeMemory
12881khsoo01최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
#include<iostream> int m,n,a;int main(){std::cin>>n;for(;n>0;n--){std::cin>>a;if(m<a)m=a;}std::cout<<m;}

Compilation message (stderr)

/tmp/cc8VlSFO.o: In function `main':
tutorial2.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccOzTtzX.o:grader.cpp:(.text.startup+0x0): first defined here
/tmp/ccOzTtzX.o: In function `main':
grader.cpp:(.text.startup+0x97): undefined reference to `GetMax(int, int*)'
collect2: ld returned 1 exit status