Submission #12832

#TimeUsernameProblemLanguageResultExecution timeMemory
12832yongwhan최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
#include<iostream>
#include<algorithm>
using namespace std;
 
int GetMax(int N, int A[]) {
  	int mx=A[0];
	for (int i=0; i<n; i++) mx=max(mx,A[i]);
  	return mx;
}

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:7:18: error: 'n' was not declared in this scope