QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#864883#9678. 网友小 Z 的树yoy68Compile Error//C++14996b2025-01-21 10:41:232025-01-21 10:41:23

Details

answer.code: In function ‘std::pair<int, int> find_diameter(int, int)’:
answer.code:27:7: error: ‘i’ was not declared in this scope
   27 |   For(i,4,n)if(ask(i,v,w)>ask(u,v,w))u=i;
      |       ^
answer.code:27:3: error: ‘For’ was not declared in this scope
   27 |   For(i,4,n)if(ask(i,v,w)>ask(u,v,w))u=i;
      |   ^~~