Borderou de evaluare (job #2110096)
Utilizator | Data | 20 ianuarie 2018 12:26:14 | |
---|---|---|---|
Problema | Kdrum | Status | done |
Runda | evaluare_cex_sv_cls_x_2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10: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:18:22: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::deque<int>::value_type {aka int}’ [-fpermissive]
yy.push_back( y1 );
^
In file included from /usr/include/c++/4.8/deque:64:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:67,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_deque.h:1404:7: error: initializing argument 1 of ‘void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::value_type = int]’ [-fpermissive]
push_back(value_type&& __x)
^
user.cpp:19:20: error: invalid types ‘int [60][double(double)throw ()]’ for array subscript
if(a[ x1 ][ y1 ] % k == 0){
^
user.cpp:20:21: error: invalid types ‘std::pair<bool, int> [60][double(double)throw ()]’ for array subscript
b[ x1 ][ y1 ].first = 1;
^
user.cpp:21:21: error: invalid types ‘std::pair<bool, int> [60][double(double)throw ()]’ for array subscript
b[ x1 ][ y1 ].second = 0;
^
user.cpp:23:17: error: invalid types ‘std::pair<bool, int> [60][double(double)throw ()]’ for array subscript
b[ x1 ][ y1 ].second = a[ x1 ][ y1 ] % k;
^
user.cpp:23:40: error: invalid types ‘int [60][double(double)throw ()]’ for array subscript
b[ x1 ][ y1 ].second = a[ x1 ][ y1 ] % k;
^
user.cpp:24:17: error: invalid types ‘int [60][double(double)throw ()]’ for array subscript
c[ x1 ][ y1 ] = 1;
^
user.cpp:26:20: error: invalid types ‘std::pair<bool, int> [60][double(double)throw ()]’ for array subscript
if(b[ x1 ][ y1 ].first == 0)
^
user.cpp: In function ‘int main()’:
user.cpp:56: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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !