/in/foo.cc: In function 'int main()':
/in/foo.cc:8:18: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
8 | {for(j=1;j<=n:j++)
| ^
/in/foo.cc:8:22: error: found ':' in nested-name-specifier, expected '::'
8 | {for(j=1;j<=n:j++)
| ^
| ::
/in/foo.cc:8:21: error: 'n' is not a class, namespace, or enumeration
8 | {for(j=1;j<=n:j++)
| ^
/in/foo.cc:14:9: error: expected primary-expression before '}' token
14 | }
| ^
/in/foo.cc:13:21: error: expected ')' before '}' token
13 | cout<<endl;
| ^
| )
14 | }
| ~
/in/foo.cc:8:13: note: to match this '('
8 | {for(j=1;j<=n:j++)
| ^
/in/foo.cc:14:9: error: expected primary-expression before '}' token
14 | }
| ^
/in/foo.cc:15:10: error: expected ';' before ':' token
15 | return 0:
| ^
| ;
/in/foo.cc:15:10: error: expected primary-expression before ':' token