QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#218860#7523. Partially Free Mealucup-team1881Compile Error//C++204.8kb2023-10-18 19:25:082023-10-18 19:25:08

Details

answer.code:91:24: error: stray ‘#’ in program
   91 |                 x = i;a#include <bits/stdc++.h>
      |                        ^
answer.code: In lambda function:
answer.code:91:24: error: expected ‘;’ before ‘include’
   91 |                 x = i;a#include <bits/stdc++.h>
      |                        ^~~~~~~~
      |                        ;
answer.code:108:53: error: a function-definition is not allowed here before ‘{’ token
  108 | void add(int &p, int o, int l, int r, int x, int v) {
      |                                                     ^
answer.code:124:39: error: a function-definition is not allowed here before ‘{’ token
  124 | i64 query(int p, int l, int r, int k) {
      |                                       ^
answer.code:138:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
  138 | int main() {
      |         ^~
answer.code:138:9: note: remove parentheses to default-initialize a variable
  138 | int main() {
      |         ^~
      |         --
answer.code:138:9: note: or replace parentheses with braces to value-initialize a variable
answer.code:138:12: error: a function-definition is not allowed here before ‘{’ token
  138 | int main() {
      |            ^