QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#397894#4799. Rotate Sum 3ucup-team2335Compile Error//C++142.5kb2024-04-24 19:16:032024-04-24 19:16:04

Details

answer.code:4:22: error: ‘ranges’ is not a namespace-name
    4 | using namespace std::ranges;
      |                      ^~~~~~
answer.code: In function ‘int main()’:
answer.code:75:22: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   75 |                 auto [X, Y] = v[0];
      |                      ^
answer.code:98:30: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   98 |                         auto [lx, hx] = get(a[i]);
      |                              ^
answer.code:99:30: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   99 |                         auto [ly, hy] = get(a[(i + 1) % n]);
      |                              ^