Nu aveti permisiuni pentru a descarca fisierul p9.jpg

Borderou de evaluare (job #991569)

Utilizator SebiSebiPirtoaca George Sebastian SebiSebi Data 30 august 2013 20:47:09
Problema Photoshop Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:31: error: ‘int y1’ redeclared as different kind of symbol int xmin,xmax,ymin,ymax,x1,x2,y1,y2; ^ 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/iostream:38, 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 queryx(int, int, int)’: user.cpp:56:23: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::set<int>::key_type {aka int}’ [-fpermissive] it = ax[nod].find(y1); ^ In file included from /usr/local/include/c++/4.8.0/set:61:0, from user.cpp:4: /usr/local/include/c++/4.8.0/bits/stl_set.h:660:7: error: initializing argument 1 of ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::find(const key_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::set<_Key, _Compare, _Alloc>::key_type = int]’ [-fpermissive] find(const key_type& __x) ^ user.cpp:57:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(it==ax[nod].end() && *(ax[nod].begin())<=y1) { ^ user.cpp:58:31: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::set<int>::key_type {aka int}’ [-fpermissive] it = ax[nod].lower_bound(y1); ^ In file included from /usr/local/include/c++/4.8.0/set:61:0, from user.cpp:4: /usr/local/include/c++/4.8.0/bits/stl_set.h:681:7: error: initializing argument 1 of ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::set<_Key, _Compare, _Alloc>::key_type = int]’ [-fpermissive] lower_bound(const key_type& __x) ^ user.cpp: In function ‘void queryy(int, int, int)’: user.cpp:105:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if((y2<=st)&&(dr<=y1)) { ^ user.cpp:127:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(mij<y1) ^ user.cpp: In function ‘int main()’: user.cpp:150:5: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ f>>x1>>y1>>x2>>y2; ^ In file included from /usr/local/include/c++/4.8.0/iostream:40:0, from user.cpp:1: /usr/local/include/c++/4.8.0/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) ^

Ceva nu functioneaza?