Borderou de evaluare (job #1552816)
Utilizator | Data | 18 decembrie 2015 18:37:01 | |
---|---|---|---|
Problema | Padure | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:17:12: error: ‘int y0’ redeclared as different kind of symbol
int N,M,x0,y0,xn,yn;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
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:17:18: error: ‘int yn’ redeclared as different kind of symbol
int N,M,x0,y0,xn,yn;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:244:1: error: previous declaration of ‘double yn(int, double)’
__MATHCALL (yn,, (int, _Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:32:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d %d %d %d %d",&N,&M,&x0,&y0,&xn,&yn);
^
user.cpp:32:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘double (*)(int, double)throw ()’ [-Wformat=]
user.cpp:38:14: error: invalid types ‘bool [1003][double(double)throw ()]’ for array subscript
B[x0][y0] = 1;
^
user.cpp:39:29: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(std::pair<int, double (*)(double)throw ()>)’
Q.push(make_pair(x0,y0));
^
user.cpp:39:29: note: candidates are:
In file included from /usr/include/c++/4.8/queue:64:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_queue.h:212:7: note: 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++/4.8/bits/stl_queue.h:212:7: note: no known conversion for argument 1 from ‘std::pair<int, double (*)(double)throw ()>’ to ‘const value_type& {aka const std::pair<int, int>&}’
/usr/include/c++/4.8/bits/stl_queue.h:217:7: note: 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++/4.8/bits/stl_queue.h:217:7: note: no known conversion for argument 1 from ‘std::pair<int, double (*)(double)throw ()>’ to ‘std::queue<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’
user.cpp:62:29: error: invalid types ‘int [1003][double(int, double)throw ()]’ for array subscript
printf("%d\n",DP[xn][yn]);
^
user.cpp:29:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("padure.in","r",stdin);
^
user.cpp:30:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("padure.out","w",stdout);
^
user.cpp:32:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !