关于srand(time(0));的错误
srand(time(0))如果包含ctime就会在using ::clock出错
60 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::tm' has not been declared
62 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::clock' has not been declared
63 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::difftime' has not been declared
64 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::mktime' has not been declared
65 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::time' has not been declared
66 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::asctime' has not been declared
67 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::ctime' has not been declared
68 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::gmtime' has not been declared
69 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::localtime' has not been declared
70 11 C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ctime [Error] '::strftime' has not been declared
6 39 C:\1.cpp [Error] 'nullptr' was not declared in this scope
6 46 C:\1.cpp [Error] 'time' was not declared in this scope