QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#360655#4. Gapucup-team1383Compile Error//C++201.0kb2024-03-21 23:38:512024-03-21 23:38:52

詳細信息

answer.code: In function ‘int main()’:
answer.code:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |     scanf("%d",&N);
      |     ~~~~~^~~~~~~~~
answer.code:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         scanf(" %c%c%c",&a,&b,&c);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/cc7AL4cU.o: in function `main':
answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/cc5Xls1S.o:implementer.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc5Xls1S.o: in function `main':
implementer.cpp:(.text.startup+0x1c6): undefined reference to `findGap(int, int)'
collect2: error: ld returned 1 exit status