QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#473999#5090. 妙妙题Zi_GaoCompile Error//C++14157b2024-07-12 15:26:282024-07-12 15:26:28

Judging History

This is the latest submission verdict.

  • [2024-07-12 15:26:28]
  • Judged
  • [2024-07-12 15:26:28]
  • Submitted

answer

#import<bits/stdc++.h>
#import"tmp.h"
void init(int a,bool b,int c){return;}int guess(unsigned long long a,int b){puts("JFIBEIIYTAFEUXOULOWO\n1");exit(0);}

Details

implementer.cpp: In function ‘int _JFIBEIIYTAFEUXOULOWO_::main()’:
implementer.cpp:31:22: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   31 |                 auto [A,x,y,z]=V[i];
      |                      ^
implementer.cpp:36:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   36 |         for(auto [A,x,y]:U)
      |                  ^
implementer.cpp:39:22: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   39 |                 auto [A,x,y,z]=V[i];
      |                      ^
implementer.cpp:18:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   18 |         scanf("%d%d%d%d",&N,&Type,&p,&T);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
implementer.cpp:23:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   23 |                 scanf("%llu",&x);
      |                 ~~~~~^~~~~~~~~~~
answer.code:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<bits/stdc++.h>
      |  ^~~~~~
answer.code:2:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    2 | #import"tmp.h"
      |  ^~~~~~
answer.code:3:43: error: ambiguating new declaration of ‘int guess(long long unsigned int, int)’
    3 | void init(int a,bool b,int c){return;}int guess(unsigned long long a,int b){puts("JFIBEIIYTAFEUXOULOWO\n1");exit(0);}
      |                                           ^~~~~
In file included from answer.code:2:
tmp.h:3:6: note: old declaration ‘bool guess(long long unsigned int, int)’
    3 | bool guess (unsigned long long A, int x);
      |      ^~~~~