Problem peakfinding
User ShaquilleOatmeal34
Submission Time 2025-03-14 15:57:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:8:12: error: ‘a’ was not declared in this scope
8 | int primes[a] = {n};
| ^
peakfinding.cpp:8:18: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | int primes[a] = {n};
| ^
| yn
peakfinding.cpp:13:8: error: ‘gopal’ was not declared in this scope
13 | cin >> gopal[i];
| ^~~~~
peakfinding.cpp:15:6: error: ‘gopal’ was not declared in this scope
15 | sort(gopal+0, gopal+n);
| ^~~~~