运行 ID: 128748

Main.cc: In function ‘int main()’:
Main.cc:7:2: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  while(a!=1);
  ^~~~~
Main.cc:8:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
      if(a%2!=0);
      ^~
Main.cc:8:6: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
Main.cc:9:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
         a=a*3+1;
         ^
Main.cc: At global scope:
Main.cc:11:6: error: expected unqualified-id before ‘else’
      else{
      ^~~~
Main.cc:14:6: error: ‘cout’ does not name a type; did you mean ‘cosl’?
      cout<