F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39505078_11599.cpp:14:14: error: 'std::mt19937 rand' redeclared as different kind of entity
   14 | mt19937 rand(time(0));
      |              ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cstdlib:79,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/stdlib.h:36,
                 from gcc-13.1.0/x86_64-w64-mingw32/include/assert.h:17,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cassert:44,
                 from .\stdc++.h:33:
gcc-13.1.0/x86_64-w64-mingw32/include/stdlib.h:470:15: note: previous declaration 'int rand()'
  470 |   int __cdecl rand(void);
      |               ^~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-10-06 12:31:14, Gzip enabled