Borderou de evaluare (job #1483772)
Utilizator | Data | 9 septembrie 2015 21:49:48 | |
---|---|---|---|
Problema | Matrice3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:53:8: error: ‘int y1’ redeclared as different kind of symbol
int x1,y1,x2,y2;
^
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/bits/stl_algobase.h:59,
from /usr/include/c++/4.8/vector:60,
from user.cpp:25:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:122:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
cin>>x1>>y1>>x2>>y2;
^
In file included from /usr/include/c++/4.8/fstream:38:0,
from user.cpp:33:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:124:18: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
int l=y2-y1+1;
^
user.cpp:128:41: error: invalid types ‘int [215][double(double)throw ()]’ for array subscript
rmq[k][l][x1][y1]
^
user.cpp:12:21: note: in definition of macro ‘MAX’
#define MAX(a,b) (((a)>(b))?(a):(b))
^
user.cpp:127:21: note: in expansion of macro ‘MAX’
MAX(
^
user.cpp:130:50: error: invalid types ‘int [215][double(double)throw ()]’ for array subscript
rmq[k][l][x2-(1<<k)+1][y1]
^
user.cpp:12:21: note: in definition of macro ‘MAX’
#define MAX(a,b) (((a)>(b))?(a):(b))
^
user.cpp:127:21: note: in expansion of macro ‘MAX’
MAX(
^
user.cpp:128:41: error: invalid types ‘int [215][double(double)throw ()]’ for array subscript
rmq[k][l][x1][y1]
^
user.cpp:12:21: note: in definition of macro ‘MAX’
#define MAX(a,b) (((a)>(b))?(a):(b))
^
user.cpp:127:21: note: in expansion of macro ‘MAX’
MAX(
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !