Submission #4156

#TimeUsernameProblemLanguageResultExecution timeMemory
4156dbfud최댓값 (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 = new int[ arryNum ] ; for ( int i = 0; i < arryNum ; ++i ) { cin >> array[i] ; } cout << GetMax ( arryNum , array ); delete array; }

Compilation message (stderr)

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