foo.cc: In function 'int Count(int*, int, int)':
foo.cc:4:18: error: 'n' was not declared in this scope
4 | for(int j=i+1;j<n;j++)
| ^
foo.cc:5:18: error: 'm' was not declared in this scope
5 | if(x[i]+x[j]==m)
| ^
foo.cc: In function 'int main()':
foo.cc:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%d %d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~
foo.cc:15:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%d",&x[i]);
| ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务