Problem 3nplus1
User apxy36
Submission Time 2023-11-08 10:19:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:12: error: no matching function for call to ‘generate(long long int&)’
6 | generate(r);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from 3nplus1.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4465:5: note: candidate: ‘template<class _FIter, class _Generator> void std::generate(_FIter, _FIter, _Generator)’
4465 | generate(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~
/usr/include/c++/9/bits/stl_algo.h:4465:5: note: template argument deduction/substitution failed:
3nplus1.cpp:6:12: note: candidate expects 3 arguments, 1 provided
6 | generate(r);
| ^
In file included from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from 3npl