运行环境: Dev c++

在开头加上

#include<stdlib.h>

就行了