Problem | peakfinding |
---|---|
User | NeeNawAmbulance |
Submission Time | 2023-04-28 14:35:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:6:11: error: expected ‘;’ before ‘int’
6 | cin >> t
| ^
| ;
7 | int a[t];
| ~~~
peakfinding.cpp:8:38: error: ‘a’ was not declared in this scope
8 | for (int i = 0; i < t; i++) cin >> a[i];
| ^
peakfinding.cpp:9:20: error: ‘a’ was not declared in this scope
9 | out(*max_element(a, a + t));
| ^
peakfinding.cpp:9:8: error: ‘max_element’ was not declared in this scope
9 | out(*max_element(a, a + t));
| ^~~~~~~~~~~
peakfinding.cpp:9:3: error: ‘out’ was not declared in this scope
9 | out(*max_element(a, a + t));
| ^~~