Problem typicalstairs
User Maskaphobia
Submission Time 2024-02-14 16:38:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typicalstairs.cpp:6:1: error: expected ‘,’ or ‘;’ before ‘long’
6 | long long count(long long n){
| ^~~~
typicalstairs.cpp: In function ‘int main()’:
typicalstairs.cpp:23:18: error: no matching function for call to ‘count(long long int&)’
23 | cout << count(N);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from typicalstairs.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: candidate: ‘template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)’
4113 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: template argument deduction/substitution failed:
typicalstairs.cpp:23:18: note: candidate expects 3 arguments, 1