Problem fibo_easy
User Yuhmama
Submission Time 2026-06-24 15:41:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo_easy.cpp: In function ‘int main()’:
fibo_easy.cpp:11:8: error: no match for ‘operator==’ (operand types are ‘std::vector<int>’ and ‘int’)
11 | if (A==(i-1)+(i-2)) {
| ~^~~~~~~~~~~~~
| | |
| | int
| std::vector<int>
In file included from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from fibo_easy.cpp:1:
/usr/include/c++/9/bits/postypes.h:222:5: note: candidate: ‘template<class _StateT> bool std::operator==(const std::fpos<_StateT>&, const std::fpos<_StateT>&)’
222 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/9/bits/postypes.h:222:5: note: template argument deduction/substitution failed:
fibo_easy.cpp:11:20