QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#147879#3531. Prime or numberHuangHanShengCompile Error//C++11251b2023-08-23 14:37:582023-08-23 14:37:59

详细

answer.code: In function ‘int main()’:
answer.code:12:17: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
   12 |                 return ;
      |                 ^~~~~~
answer.code:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         scanf("%lld",&n);
      |         ~~~~~^~~~~~~~~~~