记录详情

Compile Error

foo.c: In function 'countLetterPairs':
foo.c:57:5: warning: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
   57 |     qsort(pairs, numPairs, sizeof(PairCount), comparePairs);
      |     ^~~~~
foo.c: In function 'main':
foo.c:67:22: warning: missing terminating " character
   67 |     str[strcspn(str, "
      |                      ^
foo.c:67:22: error: missing terminating " character
foo.c:68:1: warning: missing terminating " character
   68 | ")] = '\0'; // 去掉换行符
      | ^
foo.c:68:1: error: missing terminating " character
   68 | ")] = '\0'; // 去掉换行符
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:70:26: error: expected ')' before ';' token
   70 |     countLetterPairs(str);
      |                          ^
      |                          )
foo.c:67:16: note: to match this '('
   67 |     str[strcspn(str, "
      |                ^
foo.c:70:5: error: invalid use of void expression
   70 |     countLetterPairs(str);
      |     ^~~~~~~~~~~~~~~~~~~~~
foo.c:72:14: error: expected ']' before '}' token
   72 |     return 0;
      |              ^
      |              ]
   73 | }
      | ~             
foo.c:72:14: error: expected ';' before '}' token
   72 |     return 0;
      |              ^
      |              ;
   73 | }
      | ~             
[Hydro](https://hydro.ac)提供评测服务

信息

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