Problem ljubomora
User Henries
Submission Time 2024-10-29 19:51:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ljubomora.cpp: In function ‘bool calc(std::vector<long long int>, long long int, long long int)’:
ljubomora.cpp:6:7: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
6 | if (num % ceil ==0){
| ^~~
| enum
ljubomora.cpp:7:14: error: redeclaration of ‘long long int num’
7 | long long num = v[i] / ceil;
| ^~~
ljubomora.cpp:6:7: note: ‘<typeprefixerror>num’ previously declared here
6 | if (num % ceil ==0){
| ^~~
ljubomora.cpp:10:14: error: redeclaration of ‘long long int num’
10 | long long num = (v[i]/ceil) + 1;
| ^~~
ljubomora.cpp:6:7: note: ‘<typeprefixerror>num’ previously declared here
6 | if (num % ceil ==0){
| ^~~
ljubomora.cpp:12:15: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
12 | children += num;
| ^~~
| en