Submission #14664

#TimeUsernameProblemLanguageResultExecution timeMemory
14664mondo최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
#include <map> #include <set> #include <list> #include <queue> #include <stack> #include <cmath> #include <vector> #include <string> #include <iomanip> #include <cassert> #include <sstream> #include <utility> #include <iostream> #include <algorithm> using namespace std; int main() { int N, answer = 0; vector<int> v; cin >> N; v.resize(N); while(N--) { cin >> v[N]; if(v[N] > answer) answer = v[N]; } cout << answer; return 0; }

Compilation message (stderr)

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