Borderou de evaluare (job #2232242)
Utilizator | Data | 18 august 2018 01:52:09 | |
---|---|---|---|
Problema | Rj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:37: error: ‘int y1’ redeclared as different kind of symbol
int rj[MAX_MAT][MAX_MAT], N, M, x1, y1, x2, y2;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/c++config.h:507,
from /usr/include/c++/6/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void lee()’:
user.cpp:16:14: error: invalid types ‘int [110][double(double) throw ()]’ for array subscript
rj[x1][y1] = 1;
^
user.cpp:19:16: error: no matching function for call to ‘push(double (&)(double) throw ())’
qy.push(y1 );
^
In file included from /usr/include/c++/6/queue:64:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:86,
from user.cpp:1:
/usr/include/c++/6/bits/stl_queue.h:242:7: note: candidate: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::queue<_Tp, _Sequence>::value_type = int] <near match>
push(const value_type& __x)
^~~~
/usr/include/c++/6/bits/stl_queue.h:242:7: note: conversion of argument 1 would be ill-formed:
user.cpp:19:16: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘std::queue<int>::value_type {aka int}’ [-fpermissive]
qy.push(y1 );
^
In file included from /usr/include/c++/6/queue:64:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:86,
from user.cpp:1:
/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 = int; _Sequence = std::deque<int, std::allocator<int> >; std::queue<_Tp, _Sequence>::value_type = int] <near match>
push(value_type&& __x)
^~~~
/usr/include/c++/6/bits/stl_queue.h:247:7: note: conversion of argument 1 would be ill-formed:
user.cpp:19:16: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘std::queue<int>::value_type {aka int}’ [-fpermissive]
qy.push(y1 );
^
user.cpp: In function ‘int main()’:
user.cpp:63:26: error: assignment of function ‘double y1(double)’
x1=i;y1=j;
^
user.cpp:63:26: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
user.cpp:82:10: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘int’ [-fpermissive]
aux2=y1;
^~
user.cpp:83:8: error: assignment of function ‘double y1(double)’
y1=y2;
^~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !