运行 ID: 6235

Main.cc: In function ‘int main()’:
Main.cc:5:12: error: expected ‘)’ before numeric constant
     if(a=10 1);
       ~    ^~
            )
Main.cc:5:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if(a=10 1);
        ~^~~
Main.cc:5:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if(a=10 1);
     ^~
Main.cc:6:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
     {
     ^