Submission #21099

#TimeUsernameProblemLanguageResultExecution timeMemory
21099yunhoo90최댓값 (tutorial2)C++11
Compilation error
0 ms0 KiB
#include <iostream> #include <string> #include <algorithm> #include <vector> #include <stack> #include <list> #include <memory.h> using namespace std; int GetMax(int N, int A[]) { int m = -987654321; for (int i = 0; i < N; i++) { m = max(A[i], m); } return m; } int main() { int n, a[10]; cin >> n; for (int i = 0; i < n; i++) cin >> a[i]; cout << GetMax(n, a)<<endl; return 0; }

Compilation message (stderr)

/tmp/ccz14TXf.o: In function `main':
tutorial2.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccMLCSCc.o:grader.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status