Borderou de evaluare (job #2215585)
Utilizator | Data | 22 iunie 2018 19:05:41 | |
---|---|---|---|
Problema | Rj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:41: error: ‘int y1’ redeclared as different kind of symbol
int n, m, a[102][102], b[102][102], x1, y1, x2, y2, tmin, l, c;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/c++config.h:507,
from /usr/include/c++/6/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:22:22: error: assignment of function ‘double y1(double)’
x1 = i, y1 = j;
^
user.cpp:22:22: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
user.cpp:28:11: error: invalid types ‘int [102][double(double) throw ()]’ for array subscript
a[x1][y1] = f[x1][y1] = 1;
^
user.cpp:28:23: error: invalid types ‘bool [102][double(double) throw ()]’ for array subscript
a[x1][y1] = f[x1][y1] = 1;
^
user.cpp:30:18: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)’
q.push({x1, y1});
^
In file included from /usr/include/c++/6/queue:64:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:86,
from user.cpp:1:
/usr/include/c++/6/bits/stl_queue.h:242:7: note: candidate: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
push(const value_type& __x)
^~~~
/usr/include/c++/6/bits/stl_queue.h:242:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const std::pair<int, int>&}’
/usr/include/c++/6/bits/stl_queue.h:247:7: note: candidate: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
push(value_type&& __x)
^~~~
/usr/include/c++/6/bits/stl_queue.h:247:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::queue<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !