QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#842597#9969. Kindergarten Square阿克曼猫树 (Mingyang Zhang, Junxiu Chen, Weiran Liu)#Compile Error//C++171.5kb2025-01-04 13:37:292025-01-04 13:37:29

Details

answer.code: In function ‘void calc(int, std::pair<int, int>&)’:
answer.code:30:32: error: expected ‘)’ before ‘;’ token
   30 | void calc(int X,pr &Y){Y.x=(X-1;)/m+1,Y.y=(X-1)%m+1;}
      |                            ~   ^
      |                                )
answer.code:30:33: error: expected primary-expression before ‘)’ token
   30 | void calc(int X,pr &Y){Y.x=(X-1;)/m+1,Y.y=(X-1)%m+1;}
      |                                 ^