Borderou de evaluare (job #1550468)

Utilizator gbibBacotiu Gabi gbib Data 13 decembrie 2015 19:33:37
Problema Dreptunghiuri3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:30: error: ‘int j1 [1003]’ redeclared as different kind of symbol int i1[1003],i2[1003],j1[1003],j2[1003]; ^ 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:18:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] in>>i1[i]>>j1[i]>>i2[i]>>j2[i]>>v[i]; ^ user.cpp:18:7: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ in>>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:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] my[j1[i]]=1; ^ user.cpp:20:12: 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:2: /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:37:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] b[mx[i1[i]]][my[j1[i]]]+=v[i]; ^ user.cpp:37:25: 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:2: /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:39:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] b[mx[i2[i]]+1][my[j1[i]]]-=v[i]; ^ user.cpp:39:27: 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:2:

Ceva nu functioneaza?