‘exit’ was not declared in this scope
添加以下代码块(头文件):
#include <cstdlib>
‘main’ must return ‘int’
将void改为int
报错:‘cout’and‘endl’was not declared in this scope.
添加头文件
#include <iostream>
using namespace std;
‘exit’ was not declared in this scope
添加以下代码块(头文件):
#include <cstdlib>
‘main’ must return ‘int’
将void改为int
报错:‘cout’and‘endl’was not declared in this scope.
添加头文件
#include <iostream>
using namespace std;