a.cpp: In function ‘int main()’:
a.cpp:53:11: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("pause");
你定义函数返回值为int类型,
但是函数没有返回任何值,你如果不需要该函数返回值,在末尾加上return 0 ;或者改为void main(){}
你是不是把return 0删掉了
建议把代码贴出来