Borderou de evaluare (job #1889546)

Utilizator GrasuneAlexandruGrasune Alexandru Mihai GrasuneAlexandru Data 22 februarie 2017 19:28:04
Problema Alee Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:15: error: ‘int y1’ redeclared as different kind of symbol int n,m,x1,x2,y1,y2,a,b; ^ 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/iostream:38, 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 citire()’: user.cpp:34:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d %d %d",&x1,&y1,&x2,&y2); ^ user.cpp: In function ‘int lee()’: user.cpp:41:28: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(std::pair<int, double (*)(double)throw ()>)’ p.push(make_pair(x1,y1)); ^ user.cpp:41:28: note: candidates are: In file included from /usr/include/c++/4.8/queue:64:0, from user.cpp:4: /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:42:13: error: invalid types ‘int [1000][double(double)throw ()]’ for array subscript D[x1][y1]=0; ^ user.cpp: In function ‘void citire()’: user.cpp:28:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&n,&m); ^ user.cpp:31:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&a,&b); ^ user.cpp:34:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d",&x1,&y1,&x2,&y2); ^ user.cpp: In function ‘int main()’: user.cpp:65:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alee.in","r",stdin); ^ user.cpp:66:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alee.out","w",stdout); ^

Ceva nu functioneaza?