QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#432098#5070. Check Pattern is Badegypt_ioi2024_01Compile Error//C++234.0kb2024-06-06 18:32:382024-06-06 18:32:38

Details

answer.code:1:2: error: stray ‘#’ in program
    1 | =#include <bits/stdc++.h>
      |  ^
answer.code:1:1: error: expected unqualified-id before ‘=’ token
    1 | =#include <bits/stdc++.h>
      | ^
answer.code:4:1: error: ‘mt19937’ does not name a type
    4 | mt19937 rnd;
      | ^~~~~~~
answer.code: In function ‘int main()’:
answer.code:7:5: error: ‘rnd’ was not declared in this scope
    7 |     rnd.seed(time(0));
      |     ^~~
answer.code:7:14: error: ‘time’ was not declared in this scope
    7 |     rnd.seed(time(0));
      |              ^~~~
answer.code:1:1: note: ‘time’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
  +++ |+#include <ctime>
    1 | =#include <bits/stdc++.h>
answer.code:8:5: error: ‘ios_base’ has not been declared
    8 |     ios_base::sync_with_stdio(false);cin.tie(0);
      |     ^~~~~~~~
answer.code:8:38: error: ‘cin’ was not declared in this scope
    8 |     ios_base::sync_with_stdio(false);cin.tie(0);
      |                                      ^~~
answer.code:124:9: error: ‘cout’ was not declared in this scope
  124 |         cout<<"NO"<<"\n";
      |         ^~~~
answer.code:127:5: error: ‘cout’ was not declared in this scope
  127 |     cout<<"YES"<<"\n";
      |     ^~~~