QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#107962#2829. CryptographyHuangHanShengCompile Error//C++98686b2023-05-23 11:46:002023-05-23 11:46:01

Details

answer.code:12:45: error: ‘>>’ should be ‘> >’ within a nested template argument list
   12 | priority_queue<pll, vector<pll>, greater<pll>> heap;
      |                                             ^~
      |                                             > >
answer.code: In function ‘int main()’:
answer.code:26:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   26 |         while(scanf("%d%d",&n,&m)!=EOF){
      |                      ~^    ~~
      |                       |    |
      |                       int* long long int*
      |                      %lld
answer.code:26:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
   26 |         while(scanf("%d%d",&n,&m)!=EOF){
      |                        ~^     ~~
      |                         |     |
      |                         int*  long long int*
      |                        %lld
answer.code:27:49: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   27 |                 for(int i=0;i<1<<n;i++) scanf("%d",&f[i]);
      |                                                ~^  ~~~~~
      |                                                 |  |
      |                                                 |  long long int*
      |                                                 int*
      |                                                %lld
answer.code:28:49: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   28 |                 for(int i=0;i<1<<n;i++) scanf("%d",&g[i]);
      |                                                ~^  ~~~~~
      |                                                 |  |
      |                                                 |  long long int*
      |                                                 int*
      |                                                %lld
answer.code:29:49: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   29 |                 for(int i=0;i<1<<n;i++) scanf("%d",&h[i]);
      |                                                ~^  ~~~~~
      |                                                 |  |
      |                                                 |  long long int*
      |                                                 int*
      |                                                %lld
answer.code:33:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   33 |                         scanf("%d %d",&a,&b);
      |                                ~^     ~~
      |                                 |     |
      |                                 int*  long long int*
      |                                %lld
answer.code:33:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
   33 |                         scanf("%d %d",&a,&b);
      |                                   ~^     ~~
      |                                    |     |
      |                                    int*  long long int*
      |                                   %lld
answer.code:27:46: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   27 |                 for(int i=0;i<1<<n;i++) scanf("%d",&f[i]);
      |                                         ~~~~~^~~~~~~~~~~~
answer.code:28:46: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   28 |                 for(int i=0;i<1<<n;i++) scanf("%d",&g[i]);
      |                                         ~~~~~^~~~~~~~~~~~
answer.code:29:46: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   29 |                 for(int i=0;i<1<<n;i++) scanf("%d",&h[i]);
      |                                         ~~~~~^~~~~~~~~~~~
answer.code:33:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   33 |                         scanf("%d %d",&a,&b);
      |                         ~~~~~^~~~~~~~~~~~~~~