Mã chấm: 268487


Main.cc:6:5: warning: ‘int main(int)’ takes only zero or two arguments [-Wmain]
 int main(int n) {
     ^~~~
Main.cc: In function ‘int main(int)’:
Main.cc:8:9: error: expected ‘,’ or ‘;’ before ‘int’
         int sign=1;
         ^~~
Main.cc:11:13: error: ‘sign’ was not declared in this scope
         pi+=sign*term;
             ^~~~
Main.cc:11:13: note: suggested alternative: ‘sin’
         pi+=sign*term;
             ^~~~
             sin
Main.cc:15:5: error: expected ‘;’ before ‘return’
     return pi;
     ^~~~~~
Main.cc: At global scope:
Main.cc:17:1: error: ‘End’ does not name a type; did you mean ‘rand’?
 End;
 ^~~
 rand