Problem lunchbox
User peepeepoop
Submission Time 2026-01-05 18:31:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:7:10: error: array bound is not an integer constant before ‘]’ token
7 | int arr[i];
| ^
lunchbox.cpp:8:21: error: conflicting declaration ‘long long int p’
8 | long long int m, N, p;
| ^
lunchbox.cpp:5:5: note: previous declaration as ‘int p’
5 | int p = 0;
| ^
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:10: error: ‘arr’ was not declared in this scope
13 | cin >> arr[i];
| ^~~
lunchbox.cpp:18:7: error: ‘arr’ was not declared in this scope
18 | sort(arr, arr + m);
| ^~~