Problem childvschild
User Mimikyu
Submission Time 2024-12-18 10:01:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

childvschild.cpp: In function ‘int main()’:
childvschild.cpp:21:12: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
21 | if(x%2==0)num=(x/2);
| ^~~
| enum
childvschild.cpp:22:7: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
22 | else num=(x/2)+1;
| ^~~
| enum
childvschild.cpp:24:19: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
24 | for(int i=0;i<num;i++){
| ^~~
| enum