| Problem | lunchbox | 
|---|---|
| User | Anonymous35V | 
| Submission Time | 2023-11-09 11:22:37 | 
| Score | 0 | 
| Max Time | N/A | 
| Max Memory | N/A | 
Owl Get a Life
 lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:13: error: invalid types ‘int[int]’ for array subscript
    7 |   cin >> A[i]
      |             ^
lunchbox.cpp:7:14: error: expected ‘;’ before ‘sort’
    7 |   cin >> A[i]
      |              ^
      |              ;
    8 |  sort (A, A+m);// sort array
      |  ~~~~         
lunchbox.cpp:8:15: error: expected ‘)’ before ‘;’ token
    8 |  sort (A, A+m);// sort array
      |               ^
      |               )
lunchbox.cpp:6:6: note: to match this ‘(’
    6 |  for (int i = 0;
      |      ^
lunchbox.cpp:11:14: error: invalid types ‘int[int]’ for array subscript
   11 |   sum=sum+A[k];
      |              ^
In file included from /usr/include/c++/9/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
                 from lunchbox.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::__ins