求助,头文件出错?

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 RainFestival @ 2019-08-06 18:03:56

@fzyz2018聂之贺 有没用

using namespace std;


by jyi2ya @ 2019-08-06 18:05:16

发代码。


by FaithfulinLOVE @ 2019-08-06 18:06:38

。。。可能是清理回收站的时候不小心误删了什么,iostream也不能用了。重装dev中。


by xiaohuang @ 2019-08-06 18:07:50

#include<algorithm>


by FaithfulinLOVE @ 2019-08-06 18:08:02

@zhouxiaobao 草。是。啊啊啊啊啊啊啊啊啊啊啊啊啊啊我真傻,真的


by FaithfulinLOVE @ 2019-08-06 18:08:29

@HNFMS_HeJiayi 谢谢,知道了


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

@zhouxiaobao 谢谢你呀!!!!!


by FaithfulinLOVE @ 2019-08-06 18:08:58

@xiaohuang 谢谢,知道了


by xiaohuang @ 2019-08-06 18:10:49

@fzyz2018聂之贺

不要自责


by RainFestival @ 2019-08-06 18:19:18

@fzyz2018聂之贺 我经常这样...


| 下一页