[Error] 'c' was not declared in this scope
我们一点一点的翻译,was not是没有的意思
declared是定义, in this scope是在此范围内
连起来就是:c在此范围内没有定义
举个例子:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<c;
}
这时‘c’没有定义,就会报错
[Error] 'c' was not declared in this scope
我们一点一点的翻译,was not是没有的意思
declared是定义, in this scope是在此范围内
连起来就是:c在此范围内没有定义
举个例子:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<c;
}
这时‘c’没有定义,就会报错