Problem factorymachines
User Aden0
Submission Time 2026-11-04 15:54:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factorymachines.cpp: In function ‘bool check(long long int)’:
factorymachines.cpp:10:13: error: ‘sum’ was not declared in this scope
10 | if (sum>=k) {
| ^~~
factorymachines.cpp:11:24: error: expected ‘;’ before ‘}’ token
11 | return true
| ^
| ;
12 | }
| ~