记录详情

Compile Error

/in/foo.c: In function 'countLetterPairs':
/in/foo.c:57:5: warning: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
     qsort(pairs, numPairs, sizeof(PairCount), comparePairs);
     ^~~~~
/in/foo.c: In function 'main':
/in/foo.c:67:22: warning: missing terminating " character
     str[strcspn(str, "
                      ^
/in/foo.c:68:1: warning: missing terminating " character
 ")] = '\0'; // 去掉换行符
 ^
/in/foo.c:73:0: error: unterminated argument list invoking macro "strcspn"
 }
 
/in/foo.c:67:5: error: expected ']' at end of input
     str[strcspn(str, "
     ^~~
/in/foo.c:67:8: error: array subscript is not an integer
     str[strcspn(str, "
        ^
/in/foo.c:67:5: error: expected declaration or statement at end of input
     str[strcspn(str, "
     ^~~

信息

递交者
类型
自测
题目
6-10 哪个字母对用得最多
语言
C
递交时间
2023-12-05 16:20:42
评测时间
2023-12-05 16:20:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes