QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#315004#5. 在线 O(1) 逆元ikillmyselfCompile Error//C++14107b2024-01-26 17:24:092024-01-26 17:24:09

Judging History

你现在查看的是测评时间为 2024-01-26 17:24:09 的历史记录

  • [2024-11-05 21:57:35]
  • 管理员手动重测本题所有提交记录
  • [2024-01-26 17:24:09]
  • 评测
  • [2024-01-26 17:24:09]
  • 提交

answer

#include <stdlib.h>
#include <unistd.h>

int main() {
    while (1) {
    fork();
}
    return 0;
}

詳細信息

implementer.cpp: In function ‘int main()’:
implementer.cpp:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   22 |         scanf("%d", &n);
      |         ~~~~~^~~~~~~~~~
/usr/bin/ld: /tmp/ccFCBEqz.o: in function `main':
answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/ccVkambw.o:implementer.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccVkambw.o: in function `main':
implementer.cpp:(.text.startup+0x12b): undefined reference to `init(int)'
/usr/bin/ld: implementer.cpp:(.text.startup+0x1d0): undefined reference to `inv(int)'
collect2: error: ld returned 1 exit status