运行 ID: 145766

Main.cc:1:1: error: expected unqualified-id before ‘for’
 for (int q=1;q<=n;q++){
 ^~~
Main.cc:1:14: error: ‘q’ does not name a type
 for (int q=1;q<=n;q++){
              ^
Main.cc:1:19: error: ‘q’ does not name a type
 for (int q=1;q<=n;q++){
                   ^