Borderou de evaluare (job #961493)

Utilizator geniucosOncescu Costin geniucos Data 12 iunie 2013 13:57:07
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:21: error: ‘int y1’ redeclared as different kind of symbol int nr,poz,n,m,i,x1,y1,ap[100009],Q[100009]; ^ In file included from /usr/include/features.h:346:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420, from /usr/local/include/c++/4.8.0/cstdio:41, from user.cpp:1: /usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘void afis()’: user.cpp:24:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<ras.size();i++) ^ user.cpp: In function ‘int main()’: user.cpp:43:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d",&y1); ^ user.cpp:44:23: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::vector<int>::value_type {aka int}’ [-fpermissive] v[x1].push_back(y1); ^ In file included from /usr/local/include/c++/4.8.0/vector:64:0, from /usr/local/include/c++/4.8.0/bits/random.h:34, from /usr/local/include/c++/4.8.0/random:50, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: error: initializing argument 1 of ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]’ [-fpermissive] push_back(value_type&& __x) ^ user.cpp:45:9: error: invalid types ‘std::vector<int> [100009][double(double)throw ()]’ for array subscript h[y1].push_back(x1); ^

Ceva nu functioneaza?