QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#539954#8939. Permutationucup-team4752#Compile Error//C++17938b2024-08-31 16:07:352024-08-31 16:07:36

详细

answer.code: In function ‘int ask(int, int)’:
answer.code:7:17: error: expected ‘;’ before ‘l’
    7 |     cout << "? " l << " " << r << endl;
      |                 ^~
      |                 ;
answer.code:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
answer.code: In function ‘void solve2(int, int, int)’:
answer.code:27:13: error: ‘solve’ was not declared in this scope; did you mean ‘solve2’?
   27 |             solve(m2 + 1, r, -1);
      |             ^~~~~
      |             solve2
answer.code: In function ‘int main()’:
answer.code:56:9: error: ‘ll’ was not declared in this scope
   56 |         ll _ = 1;
      |         ^~
answer.code:57:16: error: ‘_’ was not declared in this scope
   57 |         cin >> _;
      |                ^
answer.code:59:16: error: expected ‘;’ before ‘__’
   59 |         for (ll __ = 1; __ <= _; ++__) {
      |                ^~~
      |                ;
answer.code:59:25: error: ‘__’ was not declared in this scope
   59 |         for (ll __ = 1; __ <= _; ++__) {
      |                         ^~