Problem | sumint |
---|---|
User | NotTYR |
Submission Time | 2023-02-08 21:11:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:9:2: error: expected initializer before ‘int’
9 | int sex;
| ^~~
sumint.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i=0;i<genitals;i++){
| ^
sumint.cpp:11:10: error: ‘sex’ was not declared in this scope
11 | cin >> sex;
| ^~~
sumint.cpp:12:3: error: ‘children’ was not declared in this scope
12 | children = children + sex;
| ^~~~~~~~