Borderou de evaluare (job #2153917)
Utilizator | Data | 6 martie 2018 16:11:36 | |
---|---|---|---|
Problema | Katyusha | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:44:47: error: ‘EPS’ was not declared in this scope
events.push_back({rig+EPS,-v[i].cost});
^
user.cpp:44:62: error: no matching function for call to ‘std::vector<std::pair<double, long long int> >::push_back(<brace-enclosed initializer list>)’
events.push_back({rig+EPS,-v[i].cost});
^
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/c++/5/bits/random.h:34,
from /usr/include/c++/5/random:49,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:64,
from user.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:913:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<double, long long int>; _Alloc = std::allocator<std::pair<double, long long int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<double, long long int>]
push_back(const value_type& __x)
^
/usr/include/c++/5/bits/stl_vector.h:913:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const std::pair<double, long long int>&}’
/usr/include/c++/5/bits/stl_vector.h:931:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<double, long long int>; _Alloc = std::allocator<std::pair<double, long long int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<double, long long int>]
push_back(value_type&& __x)
^
/usr/include/c++/5/bits/stl_vector.h:931:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::pair<double, long long int> >::value_type&& {aka std::pair<double, long long int>&&}’
user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("katyusha.in","r",stdin);
^
user.cpp:16:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("katyusha.out","w",stdout);
^
user.cpp:18:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:20:81: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf%lf%lf%lld",&v[i].x0,&v[i].y0,&v[i].x1,&v[i].y1,&v[i].cost);
^
user.cpp:25:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf%lf",&x,&y,&r);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !