Problem lunchbox
User DL2704
Submission Time 2023-11-12 23:29:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:3: error: expected primary-expression before ‘int’
13 | int t[s];
| ^~~
lunchbox.cpp:15:10: error: ‘t’ was not declared in this scope
15 | cin >> t[total];
| ^
lunchbox.cpp:17:8: error: ‘t’ was not declared in this scope
17 | sort(t,t+s);
| ^
lunchbox.cpp:17:3: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
17 | sort(t,t+s);
| ^~~~
| qsort