QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#554829#3000. 希望HuluoboCompile Error//C++149.0kb2024-09-09 16:27:422024-09-09 16:27:44

Details

answer.code:216:1: error: ‘c’ does not name a type
  216 | c
      | ^
answer.code: In function ‘int main()’:
answer.code:200:19: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  200 |     uint n,k;scanf("%u%u%u",&n,&x,&k);
      |              ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:201:35: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  201 |     for(uint i=1,u,v;i<n;i++)scanf("%u%u",&u,&v),Way[--u].push_back(--v),Way[v].push_back(u);
      |                              ~~~~~^~~~~~~~~~~~~~