Problem 01knapsack
User PlayVoltz
Submission Time 2023-05-18 21:54:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

01knapsack.cpp:4:37: error: expected ‘)’ before ‘;’ token
4 | bool customCompare(pair<int, int>& a; pair<int, int>& b){
| ~ ^
| )
01knapsack.cpp:4:56: error: expected initializer before ‘)’ token
4 | bool customCompare(pair<int, int>& a; pair<int, int>& b){
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from 01knapsack.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::pair<int,