QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#439350#6400. Game: CelesteZhangYiDeCompile Error//C++201.9kb2024-06-11 19:59:072024-06-11 19:59:07

Details

answer.code: In function ‘int Less(int, int, int, int)’:
answer.code:40:39: error: a function-definition is not allowed here before ‘{’ token
   40 | int Cnt(int p,int pos,int L=1,int R=n){
      |                                       ^
answer.code:46:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   46 | int main(){
      |         ^~
answer.code:46:9: note: remove parentheses to default-initialize a variable
   46 | int main(){
      |         ^~
      |         --
answer.code:46:9: note: or replace parentheses with braces to value-initialize a variable
answer.code:46:11: error: a function-definition is not allowed here before ‘{’ token
   46 | int main(){
      |           ^
answer.code:82:2: error: expected ‘}’ at end of input
   82 | }
      |  ^
answer.code:33:38: note: to match this ‘{’
   33 | int Less(int p,int q,int L=1,int R=n){
      |                                      ^
answer.code:82:2: warning: control reaches end of non-void function [-Wreturn-type]
   82 | }
      |  ^