QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#102122#5830. 树hyforcesCompile Error//C++207.5kb2023-05-02 13:12:372023-05-02 13:12:41

Details

answer.code: In function ‘void dfs2(long long int)’:
answer.code:113:19: error: ‘p’ was not declared in this scope
  113 |     else bl[u]=bl[p]+pref[u];
      |                   ^
answer.code: In function ‘int main()’:
answer.code:199:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  199 |     fread(Buf,1,BUFSIZE,stdin);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~