Problem | lunchbox |
---|---|
User | kashsinghal |
Submission Time | 2023-11-15 13:25:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:3:13: error: expected initializer before ‘long’
3 | #define int long long
| ^~~~
lunchbox.cpp:7:2: note: in expansion of macro ‘int’
7 | int N; cin >> N;
| ^~~
lunchbox.cpp:7:16: error: ‘N’ was not declared in this scope
7 | int N; cin >> N;
| ^
lunchbox.cpp:10:9: error: ‘arr’ was not declared in this scope
10 | cin >> arr[i];
| ^~~
lunchbox.cpp:13:2: error: expected ‘,’ or ‘;’ before ‘sort’
13 | sort (Arr, arr+m);
| ^~~~
lunchbox.cpp:14:21: error: expected ‘;’ before ‘i’
14 | for (int i=0; i<m ++i) {
| ^
| ;
lunchbox.cpp:15:13: error: ‘arr’ was not declared in this scope
15 | sum = sum + arr[i];
| ^~~
lunchbox.cpp:20:2: error: ‘Break’ was not declared in this scope
20 | B