Borderou de evaluare (job #1892179)

Utilizator savafierusineFloricica Dansatoarea savafierusine Data 24 februarie 2017 19:44:14
Problema Drumetii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:24: error: ‘int y1’ redeclared as different kind of symbol int k,pp,aux,j,xx,m,x1,y1,c1,nr,nodmax,n,i,vi[509],t[1009],ap[509],log[1<<18],nrb[1<<18]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:4: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp:10:77: error: ‘int log [262144]’ redeclared as different kind of symbol int k,pp,aux,j,xx,m,x1,y1,c1,nr,nodmax,n,i,vi[509],t[1009],ap[509],log[1<<18],nrb[1<<18]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:4: /usr/include/i386-linux-gnu/bits/mathcalls.h:110:1: error: previous declaration of ‘double log(double)’ __MATHCALL (log,, (_Mdouble_ __x)); ^ user.cpp: In function ‘int main()’: user.cpp:68:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d",&y1); ^ user.cpp:70:37: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(std::pair<double (*)(double)throw (), int>)’ v[x1].push_back(make_pair(y1,c1)); ^ user.cpp:70:37: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:6: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::pair<double (*)(double)throw (), int>’ to ‘const value_type& {aka const std::pair<int, int>&}’ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::pair<double (*)(double)throw (), int>’ to ‘std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’ user.cpp:71:9: error: invalid types ‘std::vector<std::pair<int, int> > [504][double(double)throw ()]’ for array subscript v[y1].push_back(make_pair(x1,c1)); ^ user.cpp:80:11: error: assignment of function ‘double y1(double)’ y1=it->first; ^ user.cpp:80:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:105:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<frunze.size();j++) ^

Ceva nu functioneaza?