Problem arrayngement
User Dan64091
Submission Time 2026-06-26 13:32:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayngement.cpp: In function ‘int32_t main()’:
arrayngement.cpp:25:4: error: ‘noise’ was not declared in this scope
25 | noise = max(noise, cards[end] + cards[end+1])
| ^~~~~
arrayngement.cpp:29:3: error: ‘noise’ was not declared in this scope
29 | noise = max(noise,cards[start] + cards[end]);
| ^~~~~
arrayngement.cpp:35:10: error: ‘noise’ was not declared in this scope
35 | cout << noise << "\n";
| ^~~~~