QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#345819#7933. Build PermutationMaMengQiCompile Error//C99719b2024-03-07 15:18:552024-03-07 15:18:55

详细

answer.code: In function ‘main’:
answer.code:35:9: warning: implicit declaration of function ‘prinf’; did you mean ‘printf’? [-Wimplicit-function-declaration]
   35 |         prinf("-1");
      |         ^~~~~
      |         printf
answer.code:9:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    9 |     scanf("%d",&n);
      |     ^~~~~~~~~~~~~~
answer.code:11:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   11 |         scanf("%d",&a[i]);
      |         ^~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccOfgHiS.o: in function `main':
answer.code:(.text.startup+0x163): undefined reference to `prinf'
collect2: error: ld returned 1 exit status