Borderou de evaluare (job #1689429)

Utilizator KOzarmOvidiu Badea KOzarm Data 14 aprilie 2016 11:14:33
Problema Dreptunghiuri3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:70: error: ‘int j1 [1005]’ redeclared as different kind of symbol int a[3000][3000],n,nrMax,j,Max,m,k,k1,k2,i,i1[1005],i2[1005],j1[1005],j2[1005],v[1005],c[5005],l[5005]; ^ 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/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:240:1: error: previous declaration of ‘double j1(double)’ __MATHCALL (j1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:14:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] fin>>i1[i]>>j1[i]>>i2[i]>>j2[i]>>v[i]; ^ user.cpp:14:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ fin>>i1[i]>>j1[i]>>i2[i]>>j2[i]>>v[i]; ^ In file included from /usr/include/c++/4.8/fstream:38:0, from user.cpp:1: /usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’ operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ user.cpp:20:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(pozc[j1[i]]==0) ^ user.cpp:20:21: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::map<int, int>::key_type {aka int}’ [-fpermissive] In file included from /usr/include/c++/4.8/map:61:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_map.h:476:7: error: initializing argument 1 of ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]’ [-fpermissive] operator[](key_type&& __k) ^ user.cpp:22:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] c[++k2]=j1[i]; ^ user.cpp:22:25: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] user.cpp:23:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] pozc[j1[i]]=1; ^ user.cpp:23:22: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::map<int, int>::key_type {aka int}’ [-fpermissive] In file included from /usr/include/c++/4.8/map:61:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_map.h:476:7: error: initializing argument 1 of ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]’ [-fpermissive] operator[](key_type&& __k) ^ user.cpp:55:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] int coloana1=pozc[j1[i]];

Ceva nu functioneaza?