QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#65300#4585. Greedy KnapsackZhangYiDeCompile Error//C++2.3kb2022-11-29 14:16:472022-11-29 14:16:49

详细

answer.code:91:20: warning: missing terminating " character
   91 |             printf("%lld %lld
      |                    ^
answer.code:91:20: error: missing terminating " character
   91 |             printf("%lld %lld
      |                    ^~~~~~~~~~
answer.code:92:1: warning: missing terminating " character
   92 | ",A,B);
      | ^
answer.code:92:1: error: missing terminating " character
   92 | ",A,B);
      | ^~~~~~~
answer.code: In function ‘int main()’:
answer.code:93:9: error: expected primary-expression before ‘}’ token
   93 |         }
      |         ^
answer.code:77:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   77 |     scanf("%d%d",&n,&q);
      |     ~~~~~^~~~~~~~~~~~~~
answer.code:78:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   78 |     scanf("%s",s+1);
      |     ~~~~~^~~~~~~~~~
answer.code:81:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   81 |         scanf("%d",&x);
      |         ~~~~~^~~~~~~~~
answer.code:83:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   83 |             scanf("%d%d",&l,&r);
      |             ~~~~~^~~~~~~~~~~~~~
answer.code:87:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   87 |             scanf("%d%d%lld%lld",&l,&r,&a,&b);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~