QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#486693#7108. CouleurMaMengQiCompile Error//C++1712.4kb2024-07-21 23:09:312024-07-21 23:09:31

Details

answer.code:241:11: error: conflicting declaration ‘const long long int INF’
  241 | const int INF=0x3f3f3f3f;
      |           ^~~
answer.code:13:11: note: previous declaration as ‘const int INF’
   13 | const int INF=0x3f3f3f3f;
      |           ^~~
answer.code:242:11: error: conflicting declaration ‘const long long int inf’
  242 | const int inf=0x3f3f3f3f;
      |           ^~~
answer.code:14:11: note: previous declaration as ‘const int inf’
   14 | const int inf=0x3f3f3f3f;
      |           ^~~
answer.code:246:17: error: redefinition of ‘const long long int LINF’
  246 | const long long LINF=0x3f3f3f3f3f3f3f3f;
      |                 ^~~~
answer.code:18:17: note: ‘const long long int LINF’ previously defined here
   18 | const long long LINF=0x3f3f3f3f3f3f3f3f;
      |                 ^~~~
answer.code:29:13: error: duplicate ‘unsigned’
   29 | #define ull unsigned ll
      |             ^~~~~~~~
answer.code:256:28: note: in expansion of macro ‘ull’
  256 | typedef unsigned long long ull;
      |                            ^~~
answer.code:29:22: error: conflicting declaration ‘typedef long long unsigned int ll’
   29 | #define ull unsigned ll
      |                      ^~
answer.code:256:28: note: in expansion of macro ‘ull’
  256 | typedef unsigned long long ull;
      |                            ^~~
answer.code:30:7: note: previous declaration as ‘using ll = long long int’
   30 | using ll = long long;
      |       ^~
answer.code:277:8: error: redefinition of ‘double eps’
  277 | double eps=1e-12;
      |        ^~~
answer.code:49:8: note: ‘double eps’ previously defined here
   49 | double eps=1e-12;
      |        ^~~
answer.code:278:8: error: redefinition of ‘double pai’
  278 | double pai=acos(-1.0);
      |        ^~~
answer.code:50:8: note: ‘double pai’ previously defined here
   50 | double pai=acos(-1.0);
      |        ^~~
answer.code:279:11: error: redefinition of ‘long long int mod’
  279 | long long mod=998244353;
      |           ^~~
answer.code:51:11: note: ‘long long int mod’ previously defined here
   51 | long long mod=998244353;
      |           ^~~
answer.code:282:23: error: redefinition of ‘template<class T> T read()’
  282 | template<typename T>T read(){
      |                       ^~~~
answer.code:54:23: note: ‘template<class T> T read()’ previously declared here
   54 | template<typename T>T read(){
      |                       ^~~~
answer.code:295:26: error: redefinition of ‘template<class T> void write(T)’
  295 | template<typename T>void write(T X){
      |                          ^~~~~
answer.code:67:26: note: ‘template<class T> void write(T)’ previously declared here
   67 | template<typename T>void write(T X){
      |                          ^~~~~
answer.code:309:5: error: redefinition of ‘long long int gcd(long long int, long long int)’
  309 | int gcd(int a, int b){
      |     ^~~
answer.code:81:5: note: ‘long long int gcd(long long int, long long int)’ previously defined here
   81 | int gcd(int a, int b){
      |     ^~~
answer.code:313:11: error: redefinition of ‘long long int qpow(long long int, long long int)’
  313 | long long qpow(long long x,long long y) {
      |           ^~~~
answer.code:85:11: note: ‘long long int qpow(long long int, long long int)’ previously defined here
   85 | long long qpow(long long x,long long y) {
      |           ^~~~
answer.code:322:11: error: redefinition of ‘long long int inv(long long int)’
  322 | long long inv(long long a){
      |           ^~~
answer.code:94:11: note: ‘long long int inv(long long int)’ previously defined here
   94 | long long inv(long long a){
      |           ^~~
answer.code:326:11: error: redefinition of ‘const long long int dx []’
  326 | const int dx[]={1,0,-1,0,1,1,-1,-1};
      |           ^~
answer.code:98:11: note: ‘const long long int dx [8]’ previously defined here
   98 | const int dx[]={1,0,-1,0,1,1,-1,-1};
      |           ^~
answer.code:327:11: error: redefinition of ‘const long long int dy []’
  327 | const int dy[]={0,-1,0,1,-1,1,-1,1};
      |           ^~
answer.code:99:11: note: ‘const long long int dy [8]’ previously defined here
   99 | const int dy[]={0,-1,0,1,-1,1,-1,1};
      |           ^~
answer.code:331:6: error: redefinition of ‘void solve()’
  331 | void solve(){
      |      ^~~~~
answer.code:103:6: note: ‘void solve()’ previously defined here
  103 | void solve(){
      |      ^~~~~
answer.code:416:8: error: redefinition of ‘int main()’
  416 | signed main(){
      |        ^~~~
answer.code:188:8: note: ‘int main()’ previously defined here
  188 | signed main(){
      |        ^~~~
answer.code:118:16: error: mangling of ‘solve()::<lambda(auto:29, long long int, long long int, long long int, long long int, long long int, long long int)> [with auto:29 = solve()::<lambda(auto:29, long long int, long long int, long long int, long long int, long long int, long long int)>]’ as ‘_ZZ5solvevENKUlT_xxxxxxE_clIS0_EExS_xxxxxx’ conflicts with a previous mangle
  118 |    ...