运行 ID: 121957

Main.cc: In function ‘int main()’:
Main.cc:14:3: error: expected primary-expression before ‘.’ token
   .
   ^
Main.cc:15:3: error: expected unqualified-id before ‘for’
   for(int j=1;j<=num;j++)
   ^~~
Main.cc:15:15: error: ‘j’ was not declared in this scope
   for(int j=1;j<=num;j++)
               ^