Problem tickets
User weccs
Submission Time 2025-11-14 14:27:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tickets.cpp: In function ‘long long int find_maximum(long long int, std::vector<std::vector<long long int> >)’:
tickets.cpp:24:6: error: redeclaration of ‘long long int sum’
24 | int sum;
| ^~~
tickets.cpp:11:6: note: ‘long long int sum’ previously declared here
11 | int sum;
| ^~~
tickets.cpp:32:19: error: could not convert ‘(long long int (*)[m])(& ans)’ from ‘long long int (*)[m]’ to ‘std::vector<std::vector<int> >’
32 | allocate_tickets(ans);
| ^~~
| |
| long long int (*)[m]