记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
自测
题目
P1385 Problem D. strcmp
语言
C
递交时间
2022-07-08 20:10:16
评测时间
2022-07-08 20:10:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes