QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#209508#6638. TreelectionZhaoZiLongCompile Error//C++14994b2023-10-10 15:26:532023-10-10 15:26:53

Details

answer.code: In function ‘void solve()’:
answer.code:39:12: error: too few arguments to function ‘void dfs(int, int)’
   39 |         dfs(1);
      |         ~~~^~~
answer.code:8:6: note: declared here
    8 | void dfs(int x,int father){
      |      ^~~
answer.code:47:12: error: ‘f’ was not declared in this scope
   47 |         if(f[i]==1) minn[i]=1;
      |            ^
answer.code:47:14: error: ‘i’ was not declared in this scope
   47 |         if(f[i]==1) minn[i]=1;
      |              ^
answer.code:52:46: error: ‘mn’ was not declared in this scope; did you mean ‘yn’?
   52 |                 if(siz[i]>res||(siz[i]==res&&mn[i])) printf("1");
      |                                              ^~
      |                                              yn
answer.code:34:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   34 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
answer.code:36:28: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   36 |                 int x;scanf("%d",&x);
      |                       ~~~~~^~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:59:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   59 |         scanf("%d",&T);
      |         ~~~~~^~~~~~~~~