Borderou de evaluare (job #1799889)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 6 noiembrie 2016 22:34:05
Problema Segmente Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main(int, const char**)’: user.cpp:29:59: error: converting to ‘std::vector<std::tuple<int, int, int, int> >::value_type {aka std::tuple<int, int, int, int>}’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int&, int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int, int}]’ if( x1 == x2 ) { lst1.push_back( {x1, y1, x2, y2} ); } ^ user.cpp:30:59: error: converting to ‘std::vector<std::tuple<int, int, int, int> >::value_type {aka std::tuple<int, int, int, int>}’ from initializer list would use explicit constructor ‘constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int&, int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int, int}]’ if( y1 == y2 ) { lst2.push_back( {x1, y1, x2, y2} ); } } ^ user.cpp:32:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int x = 0 + 0; x < lst1.size(); x ++ ) { ^ user.cpp:33:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int y = x + 1; y < lst1.size(); y ++ ) { ^ user.cpp:35:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int z = 0; z < lst2.size(); z ++ ) { ^

Ceva nu functioneaza?