Borderou de evaluare (job #1272715)

Utilizator stef93Stefan Gilca stef93 Data 22 noiembrie 2014 14:21:01
Problema Grid Status done
Runda FMI No Stress 5 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:18: error: ‘int y1’ redeclared as different kind of symbol int n , k , x1 , y1 , x2 , y2; ^ 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:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:49:6: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ in >> x1 >> y1 >> x2 >> y2; ^ 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:50:15: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::vector<int>::size_type {aka unsigned int}’ [-fpermissive] x = v[x1][y1]; ^ In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:4: /usr/include/c++/4.8/bits/stl_vector.h:770:7: error: initializing argument 1 of ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = unsigned int]’ [-fpermissive] operator[](size_type __n) ^ user.cpp:53:31: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >::difference_type {aka int}’ [-fpermissive] v[x1].erase(v[x1].begin() + y1); ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:778:7: error: initializing argument 1 of ‘__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator+(const difference_type&) const [with _Iterator = int*; _Container = std::vector<int>; __gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type = int]’ [-fpermissive] operator+(const difference_type& __n) const ^ user.cpp:59:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0 ; j < v[i].size() ; j++){ ^

Ceva nu functioneaza?