| Problem | peakfinding |
|---|---|
| User | potassium |
| Submission Time | 2026-10-07 11:31:28 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
peakfinding.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <bits/stdc++.h>
| ^~~~~~~
| include
peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:10:2: error: ‘cin’ was not declared in this scope
10 | cin >> n;
| ^~~
peakfinding.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #inlcude <bits/stdc++.h>
peakfinding.cpp:11:25: error: expected ‘)’ before ‘;’ token
11 | for (int i = 0; i<n;i++;) {
| ~ ^
| )
peakfinding.cpp:11:26: error: expected primary-expression before ‘)’ token
11 | for (int i = 0; i<n;i++;) {
| ^
peakfinding.cpp:17:2: error: ‘cout’ was not declared in this scope
17 | cout << x;
| ^~~~