QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#294996#5066. String-dle Countucup-team2880#Compile Error//C++202.0kb2023-12-30 17:54:222023-12-30 17:54:22

詳細信息

answer.code: In function ‘int main()’:
answer.code:87:61: error: ‘lim’ was not declared in this scope
   87 |         for (int i = 1; i <= 26; i++) pos[i] = pos[i - 1] + lim[i - 1];
      |                                                             ^~~
answer.code:89:21: error: ‘isst’ was not declared in this scope; did you mean ‘ist’?
   89 |                 if (isst(i))
      |                     ^~~~
      |                     ist
answer.code: At global scope:
answer.code:96:2: error: expected unqualified-id before numeric constant
   96 | }123as
      |  ^~~~~
answer.code: In function ‘int main()’:
answer.code:41:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   41 |         scanf("%d%d", &n, &k);
      |         ~~~~~^~~~~~~~~~~~~~~~
answer.code:45:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   45 |                 scanf("%s", ch1 + 1);
      |                 ~~~~~^~~~~~~~~~~~~~~
answer.code:46:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   46 |                 scanf("%s", ch2 + 1);
      |                 ~~~~~^~~~~~~~~~~~~~~