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:10:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
10 | for(i=1 ; i<=n , i++);{
| ^~~
cyberland.cpp:10:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
10 | for(i=1 ; i<=n , i++);{
| ^
cyberland.cpp:11:4: error: 'n' was not declared in this scope; did you mean 'yn'?
11 | if(n/i){
| ^
| yn
cyberland.cpp:11:6: error: 'i' was not declared in this scope
11 | if(n/i){
| ^
cyberland.cpp:12:8: error: expected initializer before '+=' token
12 | int ans+=i;
| ^~
cyberland.cpp:15:5: warning: unused variable 'ans' [-Wunused-variable]
15 | int ans=-1;
| ^~~
cyberland.cpp:8:5: warning: unused variable 'ans' [-Wunused-variable]
8 | int ans=0;
| ^~~