QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#302897 | #4830. Transfer of Duty | ZhaoZiLong | Compile Error | / | / | C++20 | 1.0kb | 2024-01-11 14:59:49 | 2024-01-11 14:59:49 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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; | ^~~~~~~~~~