Problem oranges2
User justin271828
Submission Time 2024-12-18 17:06:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oranges2.cpp: In function ‘int main()’:
oranges2.cpp:54:15: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
54 | q.push[p.f];}}
| ^
oranges2.cpp:71:32: error: expected ‘)’ before ‘;’ token
71 | max1 = max(max1, mem[S][k].s;}}
| ~ ^
oranges2.cpp:81:11: error: expected ‘}’ at end of input
81 | return 0;}
| ^
oranges2.cpp:13:12: note: to match this ‘{’
13 | int main() {
| ^