Problem | duckeatduck |
---|---|
User | ilovepythonandhatecplusplus |
Submission Time | 2024-07-31 16:24:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckeatduck.cpp: In function ‘int main()’:
duckeatduck.cpp:9:6: error: ‘i’ was not declared in this scope
9 | for (i=0;i<n;i++){
| ^
duckeatduck.cpp:10:5: error: expected ‘(’ before ‘i’
10 | if i==1{
| ^
| (
duckeatduck.cpp:17:8: error: expected ‘;’ before ‘}’ token
17 | r=r+1
| ^
| ;
18 | }
| ~
duckeatduck.cpp:21:7: error: expected ‘;’ before ‘}’ token
21 | r=r+1
| ^
| ;
22 | }
| ~
duckeatduck.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
duckeatduck.cpp:5:11: note: to match this ‘{’
5 | int main(){
| ^