QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#609658#6423. FireworksMaMengQiCompile Error//C++201.2kb2024-10-04 13:39:392024-10-04 13:39:40

Details

answer.code:1:2: error: stray ‘#’ in program
    1 | l#include <bits/stdc++.h>
      |  ^
answer.code:1:1: error: ‘l’ does not name a type
    1 | l#include <bits/stdc++.h>
      | ^
answer.code: In function ‘void solve()’:
answer.code:39:5: error: ‘cin’ was not declared in this scope
   39 |     cin>>n>>m>>p;
      |     ^~~
answer.code:53:9: error: ‘min’ was not declared in this scope
   53 |     res=min(check(l),check(r));
      |         ^~~
answer.code:54:5: error: ‘cout’ was not declared in this scope
   54 |     cout<<res<<endl;
      |     ^~~~
answer.code:54:16: error: ‘endl’ was not declared in this scope
   54 |     cout<<res<<endl;
      |                ^~~~
answer.code: In function ‘int main()’:
answer.code:59:5: error: ‘ios’ has not been declared
   59 |     ios::sync_with_stdio(false);
      |     ^~~
answer.code:60:5: error: ‘cin’ was not declared in this scope
   60 |     cin.tie(nullptr);
      |     ^~~
answer.code:61:5: error: ‘cout’ was not declared in this scope
   61 |     cout.tie(nullptr);
      |     ^~~~
answer.code:62:11: error: ‘fixed’ was not declared in this scope
   62 |     cout<<fixed<<setprecision(12);
      |           ^~~~~
answer.code:62:18: error: ‘setprecision’ was not declared in this scope
   62 |     cout<<fixed<<setprecision(12);
      |                  ^~~~~~~~~~~~