Problem lunchbox
User broccolini37
Submission Time 2025-01-22 17:37:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:6:25: error: ‘n’ was not declared in this scope
6 | for(int i = 0; i < n; i++){
| ^
lunchbox.cpp:7:16: error: ‘a’ was not declared in this scope
7 | cin >> a[i];
| ^
lunchbox.cpp:9:10: error: ‘a’ was not declared in this scope
9 | sort(a, a + n);
| ^
lunchbox.cpp:9:17: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
9 | sort(a, a + n);
| ^
| yn