Borderou de evaluare (job #2503902)
Utilizator | Data | 3 decembrie 2019 21:44:30 | |
---|---|---|---|
Problema | Desen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:1: error: 'vector' does not name a type
vector<pair<long double,pair<int,int>>>l;
^~~~~~
main.cpp: In function 'long double dist(std::pair<int, int>, std::pair<int, int>)':
main.cpp:49:120: error: 'sqrt' was not declared in this scope
return (long double)sqrt((long double)((a.first-b.first)*(a.first-b.first)+(a.second-b.second)*(a.second-b.second)));
^
main.cpp: In function 'int main()':
main.cpp:61:13: error: 'l' was not declared in this scope
l.push_back({dist(v[i],v[j]),{i,j}});
^
main.cpp:62:14: error: 'l' was not declared in this scope
sort(l.begin(),l.end());
^
main.cpp:62:31: error: 'sort' was not declared in this scope
sort(l.begin(),l.end());
^
main.cpp:69:20: error: unable to deduce 'auto&&' from 'l'
for(auto x:l)
^
main.cpp:75:36: error: 'setprecision' was not declared in this scope
cout<<fixed<<setprecision(6)<<s<<"\n";
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !