0_0_38769466_20031.cpp:1:6: error: expected constructor, destructor, or type conversion before '(' token
1 | scanf("%d", &n);
| ^
0_0_38769466_20031.cpp:2:1: error: expected unqualified-id before 'for'
2 | for (int i=1; i<=n; i++) {
| ^~~
0_0_38769466_20031.cpp:2:15: error: 'i' does not name a type
2 | for (int i=1; i<=n; i++) {
| ^
0_0_38769466_20031.cpp:2:21: error: 'i' does not name a type
2 | for (int i=1; i<=n; i++) {
| ^
|