记录详情

Compile Error

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

信息

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