Problem lunchbox
User Minjia
Submission Time 2023-11-09 10:39:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:16: error: ‘m’ was not declared in this scope
6 | long long arr[m];
| ^
lunchbox.cpp:10:10: error: ‘arr’ was not declared in this scope
10 | cin >> arr[m];
| ^~~
lunchbox.cpp:12:7: error: ‘arr’ was not declared in this scope
12 | sort(arr, arr[m], greater<int>());
| ^~~
lunchbox.cpp:14:17: error: expected initializer before ‘+=’ token
14 | long long sum += *(arr+m);
| ^~
lunchbox.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
lunchbox.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^