记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:23: warning: comparison of integer expressions of different signedness: 'int' and 'const std::__cxx11::basic_string<char>::size_type' {aka 'const long unsigned int'} [-Wsign-compare]
    8 |     string dec = (pos == string::npos) ? "" : s.substr(pos + 1);
      |                   ~~~~^~~~~~~~~~~~~~~
/in/foo.cc:9:46: error: expected '}' at end of input
    9 |     if (dec.empty()) { cout << 0; return 0; }
      |                                              ^
/in/foo.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^

信息

递交者
类型
递交
题目
P1021 分数转换
语言
C++
递交时间
2026-11-13 19:04:51
评测时间
2026-11-13 19:04:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes