Problem knockingdominoes_ex
User enterusername
Submission Time 2026-06-21 22:56:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knockingdominoes_ex.cpp: In function ‘int main()’:
knockingdominoes_ex.cpp:9:21: error: ‘n’ was not declared in this scope
9 | for(int i = 0; i < n; ++i) cin >> A[i];
| ^
knockingdominoes_ex.cpp:11:16: error: ‘a’ was not declared in this scope
11 | int cur_max = a[0];
| ^