/in/foo.cc: In function 'int main()':
/in/foo.cc:8:5: error: 'vector' was not declared in this scope
vector<double>v;
^~~~~~
/in/foo.cc:8:5: note: suggested alternative: 'perror'
vector<double>v;
^~~~~~
perror
/in/foo.cc:8:12: error: expected primary-expression before 'double'
vector<double>v;
^~~~~~
/in/foo.cc:13:9: error: 'v' was not declared in this scope
v.push_back(x);
^
/in/foo.cc:14:23: error: 'sigma' was not declared in this scope
v.push_back(x*sigma);
^~~~~
/in/foo.cc:16:10: error: 'v' was not declared in this scope
sort(v.begin(), v.end());
^
/in/foo.cc:16:5: error: 'sort' was not declared in this scope
sort(v.begin(), v.end());
^~~~
/in/foo.cc:16:5: note: suggested alternative: 'qsort'
sort(v.begin(), v.end());
^~~~
qsort
/in/foo.cc:19:18: error: 'MAX' was not declared in this scope
double min = MAX;
^~~
/in/foo.cc:33:48: error: 'sigma' was not declared in this scope
cout << v[j] <<endl << int(v[j - 1] / sigma) << endl;
^~~~~
/in/foo.cc:36:48: error: 'sigma' was not declared in this scope
cout << v[j - 1] << endl << int(v[j] / sigma) << endl;
^~~~~