/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:27:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 1; i < s.size() - 1; ++i) {
                     ~~^~~~~~~~~~~~~~
/in/foo.cc:32:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 1; i < szt; ++i) {
                     ~~^~~~~
/in/foo.cc:34:33: warning: format '%X' expects argument of type 'unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
         else printf("0x%X", t[i]);
                                 ^
/in/foo.cc:36:5: error: expected ';' before '}' token
     }
     ^
/in/foo.cc:38:31: warning: format '%X' expects argument of type 'unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
     else printf("0x%X", t[szt]);
                               ^
/in/foo.cc:40:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
自测
题目
P1000 A+B Problem
语言
C++
递交时间
2022-02-06 14:02:24
评测时间
2022-02-06 14:02:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes