Borderou de evaluare (job #2602634)

Utilizator Katherine456719Swan Katherine Katherine456719 Data 17 aprilie 2020 15:34:48
Problema Triang Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:13:1: error: 'vector' does not name a type vector <pair<double,double>> v; ^~~~~~ main.cpp: In function 'void cautare(double, double)': main.cpp:18:29: error: 'v' was not declared in this scope if(r+(1<<p)<=n and (v[r+(1<<p)].first<=x or ((abs(v[r+(1<<p)].first - x) <= 1e-3 && abs(v[r+(1<<p)].second-y) <= 1e-3)))) ^ main.cpp:20:13: error: 'v' was not declared in this scope if((abs(v[r].first - x) <= 1e-3 && abs(v[r].second-y) <= 1e-3)) ^ main.cpp: In function 'int main()': main.cpp:30:9: error: 'v' was not declared in this scope v.push_back({x,y}); ^ main.cpp:32:10: error: 'v' was not declared in this scope sort(v.begin(),v.end()); ^ Non zero exit status: 1

Ceva nu functioneaza?