Borderou de evaluare (job #2110117)

Utilizator CronosClausCarare Claudiu CronosClaus Data 20 ianuarie 2018 12:30:12
Problema Kdrum Status done
Runda evaluare_cex_sv_cls_x_2 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:9: error: ‘int y1’ redeclared as different kind of symbol int x1, y1, x2, y2; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, 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 ‘void lee()’: user.cpp:17:17: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::queue<int>::value_type {aka int}’ [-fpermissive] yy.push( y1 ); ^ In file included from /usr/include/c++/4.8/queue:64:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:85, from user.cpp:1: /usr/include/c++/4.8/bits/stl_queue.h:217:7: error: initializing argument 1 of ‘void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::queue<_Tp, _Sequence>::value_type = int]’ [-fpermissive] push(value_type&& __x) ^ user.cpp:18:20: error: invalid types ‘int [60][double(double)throw ()]’ for array subscript if(a[ x1 ][ y1 ] % k == 0){ ^ user.cpp:19:21: error: invalid types ‘std::pair<int, int> [60][double(double)throw ()]’ for array subscript b[ x1 ][ y1 ].first = 1; ^ user.cpp:20:21: error: invalid types ‘std::pair<int, int> [60][double(double)throw ()]’ for array subscript b[ x1 ][ y1 ].second = 0; ^ user.cpp:22:17: error: invalid types ‘std::pair<int, int> [60][double(double)throw ()]’ for array subscript b[ x1 ][ y1 ].second = a[ x1 ][ y1 ] % k; ^ user.cpp:22:40: error: invalid types ‘int [60][double(double)throw ()]’ for array subscript b[ x1 ][ y1 ].second = a[ x1 ][ y1 ] % k; ^ user.cpp:23:17: error: invalid types ‘int [60][double(double)throw ()]’ for array subscript c[ x1 ][ y1 ] = 1; ^ user.cpp:25:20: error: invalid types ‘std::pair<int, int> [60][double(double)throw ()]’ for array subscript if(b[ x1 ][ y1 ].first == 0) ^ user.cpp: In function ‘int main()’: user.cpp:55:8: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ cin>> x1 >> y1 >> x2 >> y2; ^ In file included from /usr/include/c++/4.8/sstream:38:0, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,

Ceva nu functioneaza?