Borderou de evaluare (job #2535777)
Utilizator | Data | 1 februarie 2020 11:18:54 | |
---|---|---|---|
Problema | Rufe | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:50: error: 'int y1' redeclared as different kind of symbol
int a,b,k,n,m,v[1001][1001],a1,a2,a3,a4,a5[5],x1,y1;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/iostream:38,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration 'double y1(double)'
__MATHCALL (y1,, (_Mdouble_));
^
main.cpp: In function 'void ump()':
main.cpp:24:13: error: invalid types 'int [1001][double(double) throw ()]' for array subscript
v[x1][y1]=1;
^
main.cpp:25:28: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(std::pair<int, double (*)(double) throw ()>)'
c.push(make_pair(x1,y1));
^
In file included from /usr/include/c++/6/queue:64:0,
from main.cpp:3:
/usr/include/c++/6/bits/stl_queue.h:242:7: note: candidate: 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++/6/bits/stl_queue.h:242: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++/6/bits/stl_queue.h:247:7: note: candidate: 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++/6/bits/stl_queue.h:247: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>&&}'
main.cpp: In function 'int main()':
main.cpp:61:12: error: assignment of function 'double y1(double)'
y1=1;
^
main.cpp:61:12: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:66:12: error: assignment of function 'double y1(double)'
y1=m;
^
main.cpp:66:12: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:71:12: error: assignment of function 'double y1(double)'
y1=m;
^
main.cpp:71:12: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:76:12: error: assignment of function 'double y1(double)'
y1=1;
^
main.cpp:76:12: error: cannot convert 'int' to 'double(double) throw ()' in assignment
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !