Problem lunchbox
User Hytoh
Submission Time 2023-05-06 10:48:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:5:9: error: two or more data types in declaration of ‘N’
5 | ll int N;
| ^
lunchbox.cpp:6:9: error: two or more data types in declaration of ‘m’
6 | ll int m;
| ^
lunchbox.cpp:7:10: error: ‘N’ was not declared in this scope
7 | cin >> N;
| ^
lunchbox.cpp:8:10: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
8 | cin >> m;
| ^
| tm
lunchbox.cpp:11:12: error: ‘arr’ was not declared in this scope
11 | cin >> arr[i];
| ^~~
lunchbox.cpp:13:8: error: ‘arr’ was not declared in this scope
13 | sort(arr,arr+m);
| ^~~