Problem | flamethrower |
---|---|
User | Renee10 |
Submission Time | 2025-08-21 15:54:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:4:9: error: ‘N’ was not declared in this scope
4 | cin >> N >> K;
| ^
flamethrower.cpp:4:14: error: ‘K’ was not declared in this scope
4 | cin >> N >> K;
| ^
flamethrower.cpp:8:10: error: ‘array’ was not declared in this scope
8 | cin >> array[i];
| ^~~~~
flamethrower.cpp:2:1: note: ‘std::array’ is defined in header ‘<array>’; did you forget to ‘#include <array>’?
1 | #include <iostream>
+++ |+#include <array>
2 | using namespace std;
flamethrower.cpp:11:2: error: expected ‘,’ or ‘;’ before ‘for’
11 | for (int i=0; i<N-K+1; ++i)
| ^~~
flamethrower.cpp:11:16: error: ‘i’ was not declared in this scope
11 | for (int i=0; i<N-K+1; ++i)
| ^