Problem factorymachines
User Tweoka
Submission Time 2026-06-25 15:26:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factorymachines.cpp:5:33: error: template placeholder type ‘vector<...auto...>’ must be followed by a simple declarator-id
5 | bool check(int T, int N, int K, vector &vec) {
| ^~~~~~
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from factorymachines.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: ‘template<class _Tp, class _Alloc> class std::vector’ declared here
386 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
factorymachines.cpp: In function ‘bool check(...)’:
factorymachines.cpp:7:5: error: ‘sum’ was not declared in this scope
7 | sum = 0;
|