Submission #164273

#TimeUsernameProblemLanguageResultExecution timeMemory
164273daddy0h최댓값 (tutorial2)C++11
Compilation error
0 ms0 KiB
/// https://oj.uz/problem/view/tutorial2 #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int tN; cin >> tN; int t_max = -987654321; for(int id=0; id<tN; ++id) { int tmp; cin >> tmp; if(tmp > t_max) t_max = tmp; } cout << t_max; return 0; }

Compilation message (stderr)

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