QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#460081#985. Attractions On Planeucup-team1005Compile Error//C++205.3kb2024-06-30 21:42:192024-06-30 21:42:19

详细

answer.code: In function ‘int main()’:
answer.code:144:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘LL’ {aka ‘long long int’} [-Wformat=]
  144 |                 debug("[%d, %d]: %lld (belong to %d)\n", i.l.fz, i.r.fz, i.c, i.id);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~
      |                                                              |
      |                                                              LL {aka long long int}
answer.code:5:36: note: in definition of macro ‘debug’
    5 | #define debug(...) fprintf(stderr, __VA_ARGS__)
      |                                    ^~~~~~~~~~~
answer.code:144:26: note: format string is defined here
  144 |                 debug("[%d, %d]: %lld (belong to %d)\n", i.l.fz, i.r.fz, i.c, i.id);
      |                         ~^
      |                          |
      |                          int
      |                         %lld
answer.code:144:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘LL’ {aka ‘long long int’} [-Wformat=]
  144 |                 debug("[%d, %d]: %lld (belong to %d)\n", i.l.fz, i.r.fz, i.c, i.id);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~          ~~~~~~
      |                                                                      |
      |                                                                      LL {aka long long int}
answer.code:5:36: note: in definition of macro ‘debug’
    5 | #define debug(...) fprintf(stderr, __VA_ARGS__)
      |                                    ^~~~~~~~~~~
answer.code:144:30: note: format string is defined here
  144 |                 debug("[%d, %d]: %lld (belong to %d)\n", i.l.fz, i.r.fz, i.c, i.id);
      |                             ~^
      |                              |
      |                              int
      |                             %lld
answer.code: At global scope:
answer.code:235:2: error: ‘ce’ does not name a type
  235 | }ce
      |  ^~