Submission #5049

#TimeUsernameProblemLanguageResultExecution timeMemory
5049jspark19990205최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
int GetMax(int n, int *A)
{
  	int i;
	int max = 0;
	for(i=0;i<n;i++)
		if(max<a[i])
			max = a[i];
	return max;
}

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:6:10: error: 'a' was not declared in this scope