Problem 7up
User spidermancoolboy
Submission Time 2024-02-07 21:57:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

7up.cpp: In function ‘int main()’:
7up.cpp:5:7: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
5 | cin>>num>>round>>child;
| ^~~
| enum
7up.cpp:6:17: error: ‘rounds’ was not declared in this scope; did you mean ‘roundl’?
6 | for (int i=0;i<rounds;i++){
| ^~~~~~
| roundl
7up.cpp:8:3: error: expected ‘,’ or ‘;’ before ‘if’
8 | if (cr==0){
| ^~
7up.cpp:10:5: error: ‘else’ without a previous ‘if’
10 | } else {
| ^~~~
7up.cpp:13:22: error: expected ‘)’ before ‘in’
13 | if (shout%7==0 || 7 in shout){
| ~ ^~~
| )