Problem souvenirs3
User Andrea
Submission Time 2026-06-26 16:45:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

souvenirs3.cpp: In function ‘int main()’:
souvenirs3.cpp:8:12: error: no match for ‘operator&&’ (operand types are ‘bool’ and ‘std::vector<long long int>’)
8 | if(N==5&&a{1,2,3,4,5})
| ~~~~^~~
| | |
| bool std::vector<long long int>
souvenirs3.cpp:8:12: note: candidate: ‘operator&&(bool, bool)’ <built-in>
8 | if(N==5&&a{1,2,3,4,5})
| ~~~~^~~
souvenirs3.cpp:8:12: note: no known conversion for argument 2 from ‘std::vector<long long int>’ to ‘bool’
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from souvenirs3.cpp:1:
/usr/include/c++/9/bits/valarray_after.h:415:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__logical_and, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__l