QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#148867#149. PerupenguinmanCompile Error//C++170b2023-08-23 19:42:552023-08-23 20:31:33

Judging History

你现在查看的是测评时间为 2023-08-23 20:31:33 的历史记录

  • [2024-09-10 16:43:16]
  • 管理员手动重测本题所有提交记录
  • [2023-08-23 20:31:33]
  • 评测
  • [2023-08-23 19:42:55]
  • 提交

answer


详细

implementer.cpp: In function ‘int main()’:
implementer.cpp:34:13: error: ‘fout’ was not declared in this scope; did you mean ‘out’?
   34 |     fprintf(fout, "%d\n", sol);
      |             ^~~~
      |             out
implementer.cpp: In function ‘char nextch()’:
implementer.cpp:15:31: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   15 |     if (pos == BUF_SIZE) fread(buf, BUF_SIZE, 1, fin), pos = 0;
      |                          ~~~~~^~~~~~~~~~~~~~~~~~~~~~~