Borderou de evaluare (job #1991245)
Utilizator | Data | 15 iunie 2017 20:47:11 | |
---|---|---|---|
Problema | Dreptunghiuri4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:23: error: ‘long long int y1 [1050]’ redeclared as different kind of symbol
long long x1[NM],y1[NM],x2[NM],y2[NM],n,k,s,xx,yy,xv[NM],yv[NM],lin;
^
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 ‘int main()’:
user.cpp:20:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
in>>x1[i]>>y1[i]>>x2[i]>>y2[i];
^
user.cpp:20:11: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
in>>x1[i]>>y1[i]>>x2[i]>>y2[i];
^
In file included from /usr/include/c++/4.8/iostream:40:0,
from user.cpp:1:
/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:23:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[i]+=11;
^
user.cpp:23:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[i]+=11;
^
user.cpp:23:14: error: assignment of read-only location ‘*(y1 + ((sizetype)i))’
user.cpp:23:14: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:27:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
ay.pb(y1[i]);
^
user.cpp:27:19: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::vector<int>::value_type {aka int}’ [-fpermissive]
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_vector.h:919:7: error: initializing argument 1 of ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]’ [-fpermissive]
push_back(value_type&& __x)
^
user.cpp:55:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
++fr[mx[x1[i]]][my[y1[i]]];
^
user.cpp:55:32: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::map<int, int>::key_type {aka int}’ [-fpermissive]
In file included from /usr/include/c++/4.8/map:61:0,
from user.cpp:5:
/usr/include/c++/4.8/bits/stl_map.h:476:7: error: initializing argument 1 of ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = int; _Tp = int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = int]’ [-fpermissive]
operator[](key_type&& __k)
^
user.cpp:57:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !