运行 ID: 9719

Main.cc:3:9: error: cannot declare ‘::main’ to be a global variable
    3 | int main(
      |         ^
Main.cc:5:9: error: expected primary-expression before ‘int’
    5 |         int a;
      |         ^~~
Main.cc:5:9: error: expected ‘}’ before ‘int’
Main.cc:4:5: note: to match this ‘{’
    4 |     {
      |     ^
Main.cc:4:6: error: expected ‘)’ before ‘int’
    4 |     {
      |      ^
      |      )
    5 |         int a;
      |         ~~~
Main.cc:3:9: note: to match this ‘(’
    3 | int main(
      |         ^
Main.cc:6:9: error: ‘cin’ does not name a type; did you mean ‘sin’?
    6 |         cin>>a;
      |         ^~~
      |         sin
Main.cc:7:9: error: ‘cout’ does not name a type
    7 |         cout<