求助,头文件出错?

P1093 [NOIP2007 普及组] 奖学金

FaithfulinLOVE @ 2019-08-06 18:01:55

[Error] 'sort' was not declared in this scope [Note] suggested alternative:

In file included from C:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-

from C:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/x86_64-w64-mingw32/32/bits/stdc++.h

from C:\Documents and Settings\Administrator\桌面\rain编程\sgl.cpp

同一个文件夹的另一个cpp中也有algorithm头文件,执行正常。但是这个cpp会报错(如上)。万能头文件也没有用。


by FaithfulinLOVE @ 2019-08-06 18:44:09

哈哈,谢谢你们啦~


by tryrtj @ 2019-08-06 18:59:12

@fzyz2018聂之贺 如果安了360就完全不奇怪(它喜欢删这种玩意)


by Null_Cat @ 2019-08-06 19:08:50

@fzyz2018聂之贺 其实平时用bits/stdc++.h就好。。。


by SisconHL @ 2019-08-06 19:09:32

我 打 cmath 用 sort


上一页 |