Problem lunchbox
User Ningja
Submission Time 2023-11-10 10:34:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:13: error: expected initializer before ‘a’
8 | int arr[4] a;
| ^
lunchbox.cpp:11:10: error: ‘a’ was not declared in this scope
11 | cin >> a.insert();
| ^
lunchbox.cpp:14:8: error: ‘a’ was not declared in this scope
14 | sort (a,a+sch);
| ^
lunchbox.cpp:14:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
14 | sort (a,a+sch);
| ^~~~
| qsort
lunchbox.cpp:18:15: error: expected ‘;’ before ‘}’ token
18 | cout << nos
| ^
| ;
19 | } else {
| ~