Borderou de evaluare (job #2166265)
Utilizator | Data | 13 martie 2018 16:21:32 | |
---|---|---|---|
Problema | Semafoare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:17: error: ‘short int y1’ redeclared as different kind of symbol
short n, m, x1, y1, x2, y2, i, j, k, op, t, tim, tr[100], v[1010][1010][4], b[1010][1010];
^
In file included from /usr/include/features.h:367:0,
from /usr/include/assert.h:35,
from /usr/include/c++/5/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/5/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 Solve()’:
user.cpp:18:11: error: ‘yyy’ was not declared in this scope
v[x1][yyy][tr[c]] = 0;
^
user.cpp:18:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[x1][yyy][tr[c]] = 0;
^
user.cpp:19:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Q[0].push_back({x1,yyy,tr[c]});
^
user.cpp:19:34: error: no matching function for call to ‘std::deque<elem>::push_back(<brace-enclosed initializer list>)’
Q[0].push_back({x1,yyy,tr[c]});
^
In file included from /usr/include/c++/5/deque:64:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:67,
from user.cpp:1:
/usr/include/c++/5/bits/stl_deque.h:1516:7: note: candidate: void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = elem; _Alloc = std::allocator<elem>; std::deque<_Tp, _Alloc>::value_type = elem]
push_back(const value_type& __x)
^
/usr/include/c++/5/bits/stl_deque.h:1516:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const elem&}’
/usr/include/c++/5/bits/stl_deque.h:1531:7: note: candidate: void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = elem; _Alloc = std::allocator<elem>; std::deque<_Tp, _Alloc>::value_type = elem]
push_back(value_type&& __x)
^
/usr/include/c++/5/bits/stl_deque.h:1531:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::deque<elem>::value_type&& {aka elem&&}’
user.cpp: In function ‘int main()’:
user.cpp:50:26: error: ‘yyy’ was not declared in this scope
f >> n >> m >> x1 >> yyy >> c >> x2 >> y2;
^
user.cpp:59:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
b[i][j] = tr[S[j]];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !