Problem | modulochain |
---|---|
User | Leeyee |
Submission Time | 2025-03-28 16:16:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modulochain.cpp: In function ‘int main()’:
modulochain.cpp:12:5: error: request for member ‘insert’ in ‘a’, which is of non-class type ‘std::vector<int> [nos]’
12 | a.insert(smth);
| ^~~~~~
modulochain.cpp:15:13: error: no match for ‘operator%’ (operand types are ‘std::vector<int>’ and ‘int’)
15 | c+= (a[j] % 1000000007);
| ~~~~ ^ ~~~~~~~~~~
| | |
| | int
| std::vector<int>
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from modulochain.cpp:1:
/usr/include/c++/9/bits/valarray_after.h:409:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__modulus, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__modulus, typename _Dom1::value_type>::result_type> std::operator%(c