Submission #145767

#TimeUsernameProblemLanguageResultExecution timeMemory
145767xxxxorb0221최댓값 (tutorial2)C++14
Compilation error
0 ms0 KiB
#include<algorithm> using namespace std; int Getmax(int n,int* arr){ int ans=arr[0]; for(int i=0;i<n;i++) ans=max(ans,arr[i]); return ans; }

Compilation message (stderr)

/tmp/cctHXqXs.o: In function `main':
grader.cpp:(.text.startup+0x97): undefined reference to `GetMax(int, int*)'
collect2: error: ld returned 1 exit status