Submission #4158

#TimeUsernameProblemLanguageResultExecution timeMemory
4158dbfud최댓값 (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] ; } int p = GetMax ( arryNum , array ); cout << p ; }

Compilation message (stderr)

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