记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:73: warning: format '%c' expects argument of type 'char*', but argument 11 has type 'int*' [-Wformat=]
  scanf("%1d-%1d%1d%1d-%1d%1d%1d%1d%1d-%1c",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j);
                                                                         ^
/in/foo.cc:8:10: warning: comparison with string literal results in unspecified behavior [-Waddress]
  if(j == "X"){
          ^~~
/in/foo.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]

信息

递交者
类型
递交
题目
P1158 ISBN号码
语言
C++
递交时间
2021-01-01 21:35:01
评测时间
2021-01-01 21:35:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes