Submission #636192

#TimeUsernameProblemLanguageResultExecution timeMemory
636192Only_Cpp최댓값 (tutorial2)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; vector<int>v; int main(){ int n,sum=-10000;cin>>n; while(n--){ int k;cin>>k; sum=max(sum,k); } cout<<sum; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccF125Ky.o: in function `main':
tutorial2.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc30rL2y.o:grader.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc30rL2y.o: in function `main':
grader.cpp:(.text.startup+0xaa): undefined reference to `GetMax(int, int*)'
collect2: error: ld returned 1 exit status