QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#328792#837. Giant PenguinMilmonCompile Error//C++175.1kb2024-02-16 06:43:072024-02-16 06:43:08

Details

answer.code: In function ‘void divide(int, int)’:
answer.code:98:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<int>’ [-Wformat=]
   98 |     fprintf(stderr,"%d\n",tar);
      |                     ~^
      |                      |
      |                      int
answer.code: In function ‘int main()’:
answer.code:143:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  143 |         return;
      |         ^~~~~~
answer.code:134:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  134 |     scanf("%d%d%d",&n,&m,&k);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:137:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  137 |         scanf("%d%d",&u,&v);
      |         ~~~~~^~~~~~~~~~~~~~
answer.code:149:17: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  149 |     int q; scanf("%d",&q);
      |            ~~~~~^~~~~~~~~
answer.code:153:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  153 |         scanf("%d%d",&t,&u);
      |         ~~~~~^~~~~~~~~~~~~~