cyberland.cpp: In function 'int main()':
cyberland.cpp:10:5: error: 'i' was not declared in this scope
10 | for(i=1 ; i<=n , i++){
| ^
cyberland.cpp:10:14: error: 'n' was not declared in this scope; did you mean 'yn'?
10 | for(i=1 ; i<=n , i++){
| ^
| yn
cyberland.cpp:10:21: error: expected ';' before ')' token
10 | for(i=1 ; i<=n , i++){
| ^
| ;
cyberland.cpp:12:8: error: expected initializer before '+=' token
12 | int ans+=i;
| ^~
cyberland.cpp:15:8: error: expected initializer before '+=' token
15 | int ans+=-1;
| ^~
cyberland.cpp:8:5: warning: unused variable 'ans' [-Wunused-variable]
8 | int ans=0;
| ^~~