QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#451875#2810. Speedrunegypt_ioi2024_12#Compile Error//C++202.3kb2024-06-23 17:41:312024-06-23 17:41:31

Details

speedrun.code: In function ‘void speedrun(int, int, int)’:
speedrun.code:88:41: error: too many arguments to function ‘int getParent()’
   88 |     while(start!=1)start=getParent(start),goTo(start);
      |                                         ^
speedrun.code:72:5: note: declared here
   72 | int getParent(){
      |     ^~~~~~~~~
grader_speedrun.cpp: In function ‘int readvalue()’:
grader_speedrun.cpp:9:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |   fscanf(input, "%d", &val);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~