Problem tickets
User Cookie
Submission Time 2024-06-30 13:53:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tickets.cpp: In function ‘long long int sub12::solve()’:
tickets.cpp:69:25: error: ‘n’ was not declared in this scope
69 | for(int i = 0; i < n; i++){
| ^
tickets.cpp:71:20: error: ‘m’ was not declared in this scope
71 | idmx[i] = m - 1;
| ^
tickets.cpp:76:25: error: ‘n’ was not declared in this scope
76 | for(int i = 0; i < n; i++)ans -= a[i][idmn[i]];
| ^
tickets.cpp:78:25: error: ‘n’ was not declared in this scope
78 | for(int i = 0; i < n / 2; i++){
| ^
tickets.cpp:82:25: error: ‘n’ was not declared in this scope
82 | for(int i = 0; i < n / 2; i++)res[comp[i].se][idmx[comp[i].se]] = 0;
| ^
tickets.cpp:83:18: error: ‘n’ was not declared in this scope
83 | for(int i = n / 2; i < n; i++)res[comp[i].se][idmn[comp[i].se]] = 0;