Mã chấm: 269619


Main.cc: In function ‘int main()’:
Main.cc:12:6: error: ‘cin’ was not declared in this scope
     {cin >> n;}
      ^~~
Main.cc:12:6: note: suggested alternative: ‘sin’
     {cin >> n;}
      ^~~
      sin
Main.cc:15:25: error: expected primary-expression before ‘,’ token
     { pi += 4.0 * pow(1-, i) / (2 * i + 1);}
                         ^
Main.cc:16:5: error: ‘cout’ was not declared in this scope
     cout << pi << endl;
     ^~~~
Main.cc:16:5: note: suggested alternative: ‘cosl’
     cout << pi << endl;
     ^~~~
     cosl
Main.cc:16:19: error: ‘endl’ was not declared in this scope
     cout << pi << endl;
                   ^~~~
Main.cc:16:19: note: suggested alternative: ‘ynl’
     cout << pi << endl;
                   ^~~~
                   ynl