Submission #145773

#TimeUsernameProblemLanguageResultExecution timeMemory
145773lkyeon328최댓값 (tutorial2)C++14
0 / 100
5 ms376 KiB
#include <iostream> using namespace std; int GetMax(int n, int *arr){ int ans = -1; for (int i = 0; i < n; i++){ ans = max(ans, arr[i]); } cout << ans; }

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...