tickets.cpp: In function 'long long int fnd_ans(int, std::vector<std::vector<int> >, std::vector<std::vector<int> >)':
tickets.cpp:27:9: error: 'll' was not declared in this scope
27 | ll median = (ll)bucket[mid];
| ^~
tickets.cpp:29:15: error: expected ';' before 'diff'
29 | ll diff = (ll)x - median;
| ^~~~~
| ;
tickets.cpp:30:20: error: 'diff' was not declared in this scope
30 | sm += (diff >= 0 ? diff : -diff);
| ^~~~
tickets.cpp:32:14: error: 'diff' was not declared in this scope
32 | } sm += (diff >= 0 ? diff : -diff);
| ^~~~
tickets.cpp:33:9: warning: no return statement in function returning non-void [-Wreturn-type]
33 | }
| ^
tickets.cpp: At global scope:
tickets.cpp:34:5: error: expected unqualified-id before 'return'
34 | return sm;
| ^~~~~~
tickets.cpp:35:1: error: expected declaration before '}' token
35 | }
| ^