Submission #4157

#TimeUsernameProblemLanguageResultExecution timeMemory
4157dbfud최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
#include <iostream> using namespace std; int GetMax ( int N , int * arr ) { int Max = 0 ; for ( int i = 0 ; i < N ; i++ ) { if ( Max < arr[i] ) { Max = arr[i] ; } } return Max ; } int main(int argc, char *argv[]) { int arryNum = 0 ; cin >> arryNum ; int array[10] = { 0 , }; for ( int i = 0; i < arryNum ; ++i ) { cin >> array[i] ; } cout << GetMax ( arryNum , array ); }

Compilation message (stderr)

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