QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#752508#8726. Magic ShowLittle_PenguinCompile Error//C++14944b2024-11-16 06:59:592024-11-16 07:00:00

Details

Alice.code:7:8: error: ‘pii’ was not declared in this scope
    7 | vector<pii> T;
      |        ^~~
Alice.code:7:11: error: template argument 1 is invalid
    7 | vector<pii> T;
      |           ^
Alice.code:7:11: error: template argument 2 is invalid
Alice.code:8:8: error: ‘pii’ was not declared in this scope
    8 | vector<pii> Alice(){
      |        ^~~
Alice.code:8:11: error: template argument 1 is invalid
    8 | vector<pii> Alice(){
      |           ^
Alice.code:8:11: error: template argument 2 is invalid
Alice.code:8:13: error: ambiguating new declaration of ‘int Alice()’
    8 | vector<pii> Alice(){
      |             ^~~~~
In file included from Alice.code:3:
Alice.h:3:33: note: old declaration ‘std::vector<std::pair<int, int> > Alice()’
    3 | std::vector<std::pair<int,int>> Alice();
      |                                 ^~~~~
Alice.code: In function ‘int Alice()’:
Alice.code:9:9: error: too many arguments to function ‘int rand()’
    9 |     rand(741852963);
      |     ~~~~^~~~~~~~~~~
In file included from /usr/include/c++/13/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:42,
                 from Alice.code:1:
/usr/include/stdlib.h:453:12: note: declared here
  453 | extern int rand (void) __THROW;
      |            ^~~~
Alice.code:11:7: error: request for member ‘push_back’ in ‘T’, which is of non-class type ‘int’
   11 |     T.push_back({0, 1});
      |       ^~~~~~~~~
Alice.code:15:11: error: request for member ‘push_back’ in ‘T’, which is of non-class type ‘int’
   15 |         T.push_back({(x >> bas & 1) ^ tmp, i});
      |           ^~~~~~~~~