cyberland.cpp: In function 'int main()':
cyberland.cpp:11:5: error: 'i' was not declared in this scope
11 | for(i=0 ; i<n , i++){
| ^
cyberland.cpp:11:13: error: 'n' was not declared in this scope; did you mean 'yn'?
11 | for(i=0 ; i<n , i++){
| ^
| yn
cyberland.cpp:11:20: error: expected ';' before ')' token
11 | for(i=0 ; i<n , i++){
| ^
| ;
cyberland.cpp:13:8: error: expected initializer before '+=' token
13 | int ans+=i;
| ^~
cyberland.cpp:16:5: warning: unused variable 'ans' [-Wunused-variable]
16 | int ans=-1;
| ^~~
cyberland.cpp:9:5: warning: unused variable 'ans' [-Wunused-variable]
9 | int ans=0;
| ^~~
cyberland.cpp: At global scope:
cyberland.cpp:20:1: error: expected declaration before '}' token
20 | }
| ^