運行環境: Dev c++

在開頭加上

#include<stdlib.h>

就行了