Borderou de evaluare (job #1658270)
Utilizator | Data | 21 martie 2016 11:54:03 | |
---|---|---|---|
Problema | Taxa | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:15: error: ‘int y0’ redeclared as different kind of symbol
int x0 , x1 , y0 , y1;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/cstdio:41,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp:15:20: error: ‘int y1’ redeclared as different kind of symbol
int x0 , x1 , y0 , y1;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/cstdio:41,
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 ‘int main()’:
user.cpp:33:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d", &x0, &y0);
^
user.cpp:34:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d", &x1, &y1);
^
user.cpp:42:14: error: invalid types ‘int [1010][double(double)throw ()]’ for array subscript
dp[x0][y0] = 0;
^
user.cpp:43:19: error: invalid user-defined conversion from ‘<brace-enclosed initializer list>’ to ‘std::queue<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’ [-fpermissive]
q.push({x0,y0});
^
In file included from /usr/include/c++/4.8/utility:70:0,
from /usr/include/c++/4.8/algorithm:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_pair.h:112:26: note: candidate is: constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = int; _T2 = int] <near match>
_GLIBCXX_CONSTEXPR pair(const _T1& __a, const _T2& __b)
^
/usr/include/c++/4.8/bits/stl_pair.h:112:26: note: no known conversion for argument 2 from ‘double(double)throw ()’ to ‘const int&’
user.cpp:43:19: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘const int&’ [-fpermissive]
q.push({x0,y0});
^
In file included from /usr/include/c++/4.8/utility:70:0,
from /usr/include/c++/4.8/algorithm:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_pair.h:112:26: error: initializing argument 2 of ‘constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = int; _T2 = int]’ [-fpermissive]
_GLIBCXX_CONSTEXPR pair(const _T1& __a, const _T2& __b)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !