QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#302897#4830. Transfer of DutyZhaoZiLongCompile Error//C++201.0kb2024-01-11 14:59:492024-01-11 14:59:49

Details

answer.code:11:7: error: conflicting declaration ‘using uint = long long unsigned int’
   11 | using uint=unsigned int;
      |       ^~~~
In file included from /usr/include/stdlib.h:394,
                 from /usr/include/c++/11/bits/std_abs.h:38,
                 from /usr/include/c++/11/cmath:47,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
                 from answer.code:1:
/usr/include/x86_64-linux-gnu/sys/types.h:150:22: note: previous declaration as ‘typedef unsigned int uint’
  150 | typedef unsigned int uint;
      |                      ^~~~
answer.code: In function ‘void precalc()’:
answer.code:23:46: warning: conversion from ‘long long unsigned int’ to ‘uint’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
   23 |    for (int i=1; i<N; ++i) mp[val[i]=rand(0, ULLONG_MAX)]=i;
      |                                              ^~~~~~~~~~