sirni.cpp:7:1: error: 'vector' does not name a type; did you mean 'qecvt_r'?
vector <pair <int,int> > m[10000000];
^~~~~~
qecvt_r
sirni.cpp: In function 'int main()':
sirni.cpp:52:13: error: 'm' was not declared in this scope
m[v[i+1] - v[i]].push_back(make_pair(i,i+1));
^
sirni.cpp:58:17: error: 'm' was not declared in this scope
m[v[x] - j].push_back(make_pair(i,x));
^
sirni.cpp:66:20: error: 'm' was not declared in this scope
for (j=0;j<m[i].size();j++){
^
sirni.cpp:30:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d",&n);
~~~~~~^~~~~~~~~
sirni.cpp:32:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d",&v[i]);
~~~~~~^~~~~~~~~~~~