Submission #14879

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

Compilation message (stderr)

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