QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#546946#4783. 神秘货币brianxiCompile Error//C++147b2024-09-04 16:07:542024-09-04 16:07:55

Judging History

你现在查看的是最新测评结果

  • [2024-09-04 16:07:55]
  • 评测
  • [2024-09-04 16:07:54]
  • 提交

answer

haoxian

Details

implementer.cpp: In function ‘bool query(long long int)’:
implementer.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |     scanf("%d", &ret);
      |     ~~~~~^~~~~~~~~~~~
implementer.cpp: In function ‘int main(int, char**)’:
implementer.cpp:24:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   24 |     scanf("%d", &type);
      |     ~~~~~^~~~~~~~~~~~~
answer.code:1:1: error: ‘haoxian’ does not name a type
    1 | haoxian
      | ^~~~~~~