foo.c:3:1: error: unknown type name 'using'
3 | using namespace std;
| ^~~~~
foo.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
3 | using namespace std;
| ^~~
foo.c: In function 'main':
foo.c:22:14: error: expected ')' before ';' token
22 | printf("1";)
| ^
| )
foo.c:22:16: error: expected ';' before 'break'
22 | printf("1";)
| ^
| ;
23 | break;
| ~~~~~
foo.c:27:14: error: expected ')' before ';' token
27 | printf("-1";)
| ^
| )
foo.c:27:16: error: expected ';' before 'break'
27 | printf("-1";)
| ^
| ;
28 | break;
| ~~~~~
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%s",a);
| ^~~~~~~~~~~~~
foo.c:9:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%s",b);
| ^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务