Problem arrayngement
User ImAllergicToshrimp
Submission Time 2026-06-26 13:51:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayngement.cpp:21:23: error: ‘B’ was not declared in this scope
21 | long long noise = B[0] + B[1];
| ^
arrayngement.cpp:21:30: error: ‘B’ was not declared in this scope
21 | long long noise = B[0] + B[1];
| ^
arrayngement.cpp:22:5: error: expected unqualified-id before ‘for’
22 | for(int i = 1; i < N - 1; ++i){
| ^~~
arrayngement.cpp:22:20: error: ‘i’ does not name a type
22 | for(int i = 1; i < N - 1; ++i){
| ^
arrayngement.cpp:22:31: error: expected unqualified-id before ‘++’ token
22 | for(int i = 1; i < N - 1; ++i){
| ^~
arrayngement.cpp:25:5: error: ‘cout’ does not name a type
25 | cout << noise << "\n";
| ^~~~
arrayngement.cpp:26:5: error: expected unqualified-id before ‘for’
26 | for(int i = 0; i < N; ++i){