QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#570026#5148. Tree DistanceaaaaaCompile Error//C++205.2kb2024-09-17 13:18:552024-09-17 13:18:56

Details

answer.code:146:2: error: stray ‘#’ in program
  146 | }#include<bits/stdc++.h>
      |  ^
answer.code: In function ‘void add(long long int, long long int, long long int)’:
answer.code:29:30: error: expected ‘;’ before ‘first’
   29 |         bruh6[tot] = first[x]
      |                              ^
      |                              ;
   30 |         first[x]=tot;
      |         ~~~~~                 
answer.code: In function ‘int main()’:
answer.code:107:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  107 |         scanf("%d",&n);
      |                ~^  ~~
      |                 |  |
      |                 |  long long int*
      |                 int*
      |                %lld
answer.code:109:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  109 |                 scanf("%d%d%d",&a,&b,&c);
      |                        ~^      ~~
      |                         |      |
      |                         int*   long long int*
      |                        %lld
answer.code:109:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
  109 |                 scanf("%d%d%d",&a,&b,&c);
      |                          ~^       ~~
      |                           |       |
      |                           int*    long long int*
      |                          %lld
answer.code:109:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
  109 |                 scanf("%d%d%d",&a,&b,&c);
      |                            ~^        ~~
      |                             |        |
      |                             int*     long long int*
      |                            %lld
answer.code:124:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  124 |         scanf("%d",&q);
      |                ~^  ~~
      |                 |  |
      |                 |  long long int*
      |                 int*
      |                %lld
answer.code:126:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  126 |                 scanf("%d%d",&a,&b);
      |                        ~^    ~~
      |                         |    |
      |                         int* long long int*
      |                        %lld
answer.code:126:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
  126 |                 scanf("%d%d",&a,&b);
      |                          ~^     ~~
      |                           |     |
      |                           int*  long long int*
      |                          %lld
answer.code: At global scope:
answer.code:146:11: error: ‘bits’ was not declared in this scope
  146 | }#include<bits/stdc++.h>
      |           ^~~~
answer.code:146:16: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
  146 | }#include<bits/stdc++.h>
      |                ^~~~
      |                std
answer.code:146:11: error: ‘bits’ was not declared in this scope
  146 | }#include<bits/stdc++.h>
      |           ^~~~
answer.code:146:16: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
  146 | }#include<bits/stdc++.h>
      |                ^~~~
      |                std
answer.code:146:11: error: ‘bits’ was not declared in this scope
  146 | }#include<bits/stdc++.h>
      |           ^~~~
answer.code:146:16: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
  146 | }#include<bits/stdc++.h>
      |                ^~~~
      |                std
answer.code:146:11: error: ‘bits’ was not declared in this scope
  146 | }#include<bits/stdc++.h>
      |           ^~~~
answer.code:146:16: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
  146 | }#include<bits/stdc++.h>
      |                ^~~~
      |                std
answer.code:146:11: error: ‘bits’ was not declared in this scope
  146 | }#include<bits/stdc++.h>
      |           ^~~~
answer.code:146:16: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
  146 | }#include<bits/stdc++.h>
      |                ^~~~
      |                std
answer.code:146:11: error: ‘bits’ was not declared in this scope
  146 | }#include<bits/stdc++.h>
      |           ^~~~
answer.code:146:16: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
  146 | }#include<bits/stdc++.h>
      |                ^~~~
      |                std
answer.code:146:11: error: ‘bits’ was not declared in this scope
  146 | }#include<bits/stdc++.h>
      |           ^~~~
answer.code:146:16: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
  146 | }#include<bits/stdc++.h>
      |                ^~~~
      |                std
answer.code:146:11: error: ‘bits’ was not declar...