QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#590619#8527. Power Divisionsucup-team3719Compile Error//C++233.7kb2024-09-26 09:00:132024-09-26 09:00:14

Details

answer.code: In function ‘ll f2(ll)’:
answer.code:43:16: error: reference to ‘ranges’ is ambiguous
   43 |     for(auto i:ranges[x]){
      |                ^~~~~~
In file included from /usr/include/c++/13/compare:37,
                 from /usr/include/c++/13/bits/stl_pair.h:65,
                 from /usr/include/c++/13/bits/stl_algobase.h:64,
                 from /usr/include/c++/13/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
                 from answer.code:1:
/usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’
  179 |   namespace ranges
      |             ^~~~~~
answer.code:37:13: note:                 ‘std::vector<int> ranges [300010]’
   37 | vector<int> ranges[NMAX];
      |             ^~~~~~
answer.code: In function ‘int main()’:
answer.code:66:9: error: reference to ‘ranges’ is ambiguous
   66 |         ranges[i].pb(i+1);
      |         ^~~~~~
/usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’
  179 |   namespace ranges
      |             ^~~~~~
answer.code:37:13: note:                 ‘std::vector<int> ranges [300010]’
   37 | vector<int> ranges[NMAX];
      |             ^~~~~~
answer.code:70:13: error: reference to ‘ranges’ is ambiguous
   70 |             ranges[i-1].pb(i+1);
      |             ^~~~~~
/usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’
  179 |   namespace ranges
      |             ^~~~~~
answer.code:37:13: note:                 ‘std::vector<int> ranges [300010]’
   37 | vector<int> ranges[NMAX];
      |             ^~~~~~
answer.code: In lambda function:
answer.code:103:17: error: reference to ‘ranges’ is ambiguous
  103 |                 ranges[i].pb(hay[busco]);
      |                 ^~~~~~
/usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’
  179 |   namespace ranges
      |             ^~~~~~
answer.code:37:13: note:                 ‘std::vector<int> ranges [300010]’
   37 | vector<int> ranges[NMAX];
      |             ^~~~~~
answer.code:132:17: error: reference to ‘ranges’ is ambiguous
  132 |                 ranges[hay[busco]].pb(i+1);
      |                 ^~~~~~
/usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’
  179 |   namespace ranges
      |             ^~~~~~
answer.code:37:13: note:                 ‘std::vector<int> ranges [300010]’
   37 | vector<int> ranges[NMAX];
      |             ^~~~~~
answer.code: In function ‘int main()’:
answer.code:142:18: error: reference to ‘ranges’ is ambiguous
  142 |         sort(ALL(ranges[i]));
      |                  ^~~~~~
answer.code:9:16: note: in definition of macro ‘ALL’
    9 | #define ALL(x) x.begin(),x.end()
      |                ^
/usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’
  179 |   namespace ranges
      |             ^~~~~~
answer.code:37:13: note:                 ‘std::vector<int> ranges [300010]’
   37 | vector<int> ranges[NMAX];
      |             ^~~~~~
answer.code:142:18: error: reference to ‘ranges’ is ambiguous
  142 |         sort(ALL(ranges[i]));
      |                  ^~~~~~
answer.code:9:26: note: in definition of macro ‘ALL’
    9 | #define ALL(x) x.begin(),x.end()
      |                          ^
/usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’
  179 |   namespace ranges
      |             ^~~~~~
answer.code:37:13: note:                 ‘std::vector<int> ranges [300010]’
   37 | vector<int> ranges[NMAX];
      |             ^~~~~~
answer.code:143:9: error: reference to ‘ranges’ is ambiguous
  143 |         ranges[i].erase(unique(ALL(ranges[i])),ranges[i].end());
      |         ^~~~~~
/usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’
  179 |   namespace ranges
      |             ^~~~~~
answer.code:37:13: note:                 ‘std::vector<int> ranges [300010]’
   37 | vector<int> ranges[NMAX];
      |             ^~~~~~
answer.code:143:36: error: reference to ‘ranges’ is ambiguous
  143 |         ranges[i].erase(unique(ALL(ranges[i])),ranges[i].end());
      |                                    ^~~~~~
answer.code:9:16: note: in definition of macro ‘ALL’
    9 | #define ALL(x) x.begin(),x.end()
      |                ^
/usr/include/c++/13/concepts:179:13: note: candidates are: ‘namespace std::ranges { }’
  179 |   namespace ranges
      |             ^~~~~~
answer.code:37:13: note:                 ‘std::vector<int> ranges [300010]’
   37 | vector<int> ranges[NMAX];
      |             ^~~~~~
answer.code:143:36: error: reference to ‘ranges’ is ambiguous
  143 |         ranges[i].erase(unique(ALL(ranges[i])),ranges[i].end());
      |                                    ^~~~~~
answer.code:9:26: note: in definition of macro ‘ALL’
    9 | #define ALL(x) x.begin(),x.end()
      |                          ^
/usr/include/c++/13/concepts:179:13: note: candid...