| Problem | topical |
|---|---|
| User | bachnguyen123 |
| Submission Time | 2026-03-05 16:19:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
topical.cpp: In function ‘bool cmp(long long int, long long int)’:
topical.cpp:14:19: error: ‘sum’ was not declared in this scope; did you mean ‘sumr’?
14 | return(sumr[x] < sum[y]);
| ^~~
| sumr
topical.cpp: In function ‘int main()’:
topical.cpp:50:12: error: no match for ‘operator<’ (operand types are ‘long long int’ and ‘std::vector<long long int>’)
50 | if(p[j] < r[idx[i]])
| ~~~~ ^ ~~~~~~~~~
| | |
| | std::vector<long long int>
| long long int
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from topical.cpp:2:
/usr/include/c+