Borderou de evaluare (job #1556648)
Utilizator | Data | 25 decembrie 2015 16:24:22 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:27: error: ‘int y1 [100]’ redeclared as different kind of symbol
int x1[100],x2[100],y1[100],y2[100],x[100],y[100],v[100],w[100],qx,qy,e,r,n,m,p,nr;
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream: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 exist(int, int)’:
user.cpp:23:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(x1[p]<=v[i]&&v[i+1]<=x2[p]&&y1[p]<=w[j]&&w[j+1]<=y2[p])
^
user.cpp:23:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(x1[p]<=v[i]&&v[i+1]<=x2[p]&&y1[p]<=w[j]&&w[j+1]<=y2[p])
^
user.cpp: In function ‘int main()’:
user.cpp:32:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fin>>x1[k]>>y1[k]>>x2[k]>>y2[k];
^
user.cpp:32:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
fin>>x1[k]>>y1[k]>>x2[k]>>y2[k];
^
In file included from /usr/include/c++/4.8/fstream:38: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:35:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y[++r]=y1[k];
^
user.cpp:35:20: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !