Problem ljubomora
User zikavirus
Submission Time 2026-02-14 21:28:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ljubomora.cpp: In function ‘int main()’:
ljubomora.cpp:41:5: error: expected ‘,’ or ‘;’ before ‘int’
41 | int grps, marbles_ceil;
| ^~~
ljubomora.cpp:43:9: error: ‘grps’ was not declared in this scope
43 | grps = (colour + optimal_mid - 1)/optimal_mid;
| ^~~~
ljubomora.cpp:44:9: error: ‘marbles_ceil’ was not declared in this scope
44 | marbles_ceil = (colour + grps - 1)/grps;
| ^~~~~~~~~~~~