/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'std::__cxx11::string kaiserAddString(const string&, int)':
/in/foo.cc:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < str.length(); i++) {
                     ~~^~~~~~~~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:42:83: error: 'INT_MAX' was not declared in this scope
 pair<bool, int> kaiserDiff(const string &lhs, const string &rhs, int upperLimit = INT_MAX, int lowerLimit = INT_MIN) {
                                                                                   ^~~~~~~
/in/foo.cc:42:109: error: 'INT_MIN' was not declared in this scope
 pair<bool, int> kaiserDiff(const string &lhs, const string &rhs, int upperLimit = INT_MAX, int lowerLimit = INT_MIN) {
                                                                                                             ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:85:77: error: 'INT_MAX' was not declared in this scope
         pair<bool, int> diffBackward = kaiserDiff(src, str[kaiserBackward], INT_MAX, -6);
                                                                             ^~~~~~~

信息

递交者
类型
递交
题目
P1449 字符串还原
语言
C++
递交时间
2024-04-09 14:24:52
评测时间
2024-04-09 14:24:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes