Run id: 124356
Main.cc: In function 'int main()':
Main.cc:117:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
printf("%.2d",a);
^
Main.cc:121:11: error: expected ';' before '-' token
for(int i-1;i<=n;i++){
^
Main.cc:121:15: warning: for increment expression has no effect [-Wunused-value]
for(int i-1;i<=n;i++){
^
Main.cc:121:18: error: expected ')' before ';' token
for(int i-1;i<=n;i++){
^
Main.cc:121:19: error: 'i' was not declared in this scope
for(int i-1;i<=n;i++){
^
Main.cc:118:6: warning: unused variable 'x' [-Wunused-variable]
int x;
^