记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:5: error: expected primary-expression before '|' token
  if(|a-b|%2==1)
     ^
foo.cc:7:10: error: expected primary-expression before '%' token
  if(|a-b|%2==1)
          ^
foo.cc:5:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%c",&a);
  ~~~~~^~~~~~~~~
foo.cc:6:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%c",&b);
         ~~~~~^~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1110 字符的处理
语言
C++
递交时间
2021-06-28 21:20:03
评测时间
2021-06-28 21:20:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes