QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#163616#7123. Robot Contest_map_Compile Error//C++204.7kb2023-09-04 12:48:042024-04-28 07:02:44

Details

answer.code: In function ‘int main()’:
answer.code:195:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
  195 |         for(int i=1;i<=m;i++)printf("%d/%d\n",a1[i],a2[i]);
      |                                      ~^       ~~~~~
      |                                       |           |
      |                                       int         long long int
      |                                      %lld
answer.code:195:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
  195 |         for(int i=1;i<=m;i++)printf("%d/%d\n",a1[i],a2[i]);
      |                                         ~^          ~~~~~
      |                                          |              |
      |                                          int            long long int
      |                                         %lld
/usr/bin/ld: /tmp/cc9CmOn1.o: in function `main':
answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/cctMbPfZ.o:implementer.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cctMbPfZ.o: in function `main':
implementer.cpp:(.text.startup+0x17): undefined reference to `program_pulibot()'
collect2: error: ld returned 1 exit status