QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#345575#7933. Build PermutationZhangYiDeCompile Error//C99836b2024-03-07 08:57:442024-03-07 08:57:46

詳細信息

answer.code: In function ‘main’:
answer.code:45:21: error: expected ‘;’ before ‘}’ token
   45 |         printf("\n")
      |                     ^
      |                     ;
   46 |     }
      |     ~                
answer.code:7:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    7 |     scanf("%d",&n);
      |     ^~~~~~~~~~~~~~
answer.code:12:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   12 |         scanf("%f", &a[i]);
      |         ^~~~~~~~~~~~~~~~~~