Problem catlunch
User isaackhong
Submission Time 2023-01-07 18:09:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:10:10: error: ‘i’ was not declared in this scope
10 | for (i = 0; i < n; i++) cin >> a[i];
| ^
catlunch.cpp:15:11: error: ‘i’ was not declared in this scope
15 | for ( i = 0; i < k; i++) q.push(a[i]);
| ^