Borderou de evaluare (job #1040830)

Utilizator adipufupufu adrian adipufu Data 24 noiembrie 2013 22:59:43
Problema Alee Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:23: error: ‘int y1’ redeclared as different kind of symbol int a[300][300],x1,x2,y1,y2,n,m; ^ In file included from /usr/include/features.h:346:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420, from /usr/local/include/c++/4.8.0/cstdio:41, from user.cpp:1: /usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘void _read()’: user.cpp:34:2: error: ‘f’ was not declared in this scope f=fopen("tsunami.in","r"); ^ user.cpp:35:1: error: ‘g’ was not declared in this scope g=fopen("tsunami.out","w"); ^ user.cpp:41:10: error: invalid types ‘int [300][double(double)throw ()]’ for array subscript a[x1][y1]=1; ^ user.cpp: In function ‘void _bf()’: user.cpp:48:25: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(std::pair<int, double (*)(double)throw ()>)’ Q.push(make_pair(x1,y1)); ^ user.cpp:48:25: note: candidates are: In file included from /usr/local/include/c++/4.8.0/queue:64:0, from user.cpp:2: /usr/local/include/c++/4.8.0/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/local/include/c++/4.8.0/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/local/include/c++/4.8.0/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/local/include/c++/4.8.0/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:52:48: error: ‘g’ was not declared in this scope if(curr.ff == x2 && curr.ss == y2) { fprintf(g,"%d",,a[curr.ff][curr.ss]); return ;} ^ user.cpp:52:55: error: expected primary-expression before ‘,’ token if(curr.ff == x2 && curr.ss == y2) { fprintf(g,"%d",,a[curr.ff][curr.ss]); return ;} ^

Ceva nu functioneaza?