foo.cc:3:13: error: stray '\357' in program
int x[10005],l,m,sum=0,a,b;
^
foo.cc:3:14: error: stray '\274' in program
int x[10005],l,m,sum=0,a,b;
^
foo.cc:3:15: error: stray '\214' in program
int x[10005],l,m,sum=0,a,b;
^
foo.cc:3:16: error: expected initializer before 'l'
int x[10005],l,m,sum=0,a,b;
^
foo.cc: In function 'int main()':
foo.cc:6:10: error: 'l' was not declared in this scope
cin>>l>>m;
^
foo.cc:6:13: error: 'm' was not declared in this scope
cin>>l>>m;
^
foo.cc:6:13: note: suggested alternative: 'tm'
cin>>l>>m;
^
tm
foo.cc:9:14: error: 'a' was not declared in this scope
cin>>a>>b;
^
foo.cc:9:17: error: 'b' was not declared in this scope
cin>>a>>b;
^
foo.cc:10:31: error: 'x' was not declared in this scope
for(int j=a;j<=b;j++) x[j]=1;
^
foo.cc:13:12: error: 'x' was not declared in this scope
if(x[i]==0) sum++;
^
foo.cc:13:21: error: 'sum' was not declared in this scope
if(x[i]==0) sum++;
^~~
foo.cc:14:11: error: 'sum' was not declared in this scope
cout<<sum;
^~~
[Hydro](https://hydro.ac)提供评测服务