foo.cc: In function 'int main()':
foo.cc:22:14: error: expected ')' before ';' token
22 | printf("1";)
| ~ ^
| )
foo.cc:22:15: error: expected primary-expression before ')' token
22 | printf("1";)
| ^
foo.cc:27:14: error: expected ')' before ';' token
27 | printf("-1";)
| ~ ^
| )
foo.cc:27:15: error: expected primary-expression before ')' token
27 | printf("-1";)
| ^
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%s",a);
| ~~~~~^~~~~~~~
foo.cc:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%s",b);
| ~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务