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

Compile Error

lunchbox.cpp:1:1: error: stray ‘`’ in program
1 | ```
| ^
lunchbox.cpp:1:2: error: stray ‘`’ in program
1 | ```
| ^
lunchbox.cpp:1:3: error: stray ‘`’ in program
1 | ```
| ^
lunchbox.cpp:25:1: error: stray ‘`’ in program
25 | ```
| ^
lunchbox.cpp:25:2: error: stray ‘`’ in program
25 | ```
| ^
lunchbox.cpp:25:3: error: stray ‘`’ in program
25 | ```
| ^
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:14:3: error: expected primary-expression before ‘int’
14 | int t[s];
| ^~~
lunchbox.cpp:16:10: error: ‘t’ was not declared in this scope
16 | cin >> t[total];
| ^
lunchbox.cpp:18:8: error: ‘t’ was not declared in this scope
18 | sort(t,t+s);
| ^
lunchbox.cpp:18:3: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
18 | sort(t,t+s);
| ^~~~
|