Problem modules
User grapecoder
Submission Time 2024-01-20 16:15:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modules.cpp: In function ‘long long int dp(int)’:
modules.cpp:51:42: error: no match for ‘operator-’ (operand types are ‘std::pair<int, int>’ and ‘std::pair<long long int, std::pair<long long int, long long int> > [100010]’)
51 | mp(-1,-1) -
| ^
52 | modules - 1;
| ~~~~~~~
| |
| std::pair<long long int, std::pair<long long int, long long int> > [100010]
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
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 modules.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:415:5: note: candidate: ‘template<class _IteratorL, class