记录详情

Compile Error

/in/foo.cc:10:41: warning: missing terminating ' character
         if (str[i]  >= 'A' && str[i] <= 'Z) {
                                         ^
/in/foo.cc:10:41: error: missing terminating ' character
         if (str[i]  >= 'A' && str[i] <= 'Z) {
                                         ^~~~~
/in/foo.cc: In function 'int Diff(const char*)':
/in/foo.cc:9:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i <= strlen(str);  i++) {
                     ~~^~~~~~~~~~~~~~
/in/foo.cc:11:17: error: expected ')' before ';' token
            big++;
                 ^
/in/foo.cc:12:10: error: 'else' without a previous 'if'
         }else if(str[i]  >= 'a' && str[i] <= 'z') {
          ^~~~
/in/foo.cc:12:22: error: 'i' was not declared in this scope
         }else if(str[i]  >= 'a' && str[i] <= 'z') {
                      ^
/in/foo.cc:15:5: warning: no return statement in function returning non-void [-Wreturn-type]
     }
     ^
/in/foo.cc: At global scope:
/in/foo.cc:16:5: error: expected unqualified-id before 'return'
     return big-small;
     ^~~~~~
/in/foo.cc:17:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
A8-3 字符串的统计函数
比赛
泰院2405作业赛第四场
语言
C++
递交时间
2024-11-12 08:29:33
评测时间
2024-11-12 08:29:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes