Borderou de evaluare (job #1943372)
Utilizator | Data | 28 martie 2017 15:46:27 | |
---|---|---|---|
Problema | Cri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:10: error: ‘int j0’ redeclared as different kind of symbol
int a,i0,j0,n,m,i,j,s1=0,s2=0,s3=0,s4=0,ies=1,k1,k2,k3,k4;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/assert.h:37,
from /usr/include/c++/4.8/cassert:43,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:239:1: error: previous declaration of ‘double j0(double)’
__MATHCALL (j0,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:10:10: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f>>n>>m>>i0>>j0;
^
In file included from /usr/include/c++/4.8/sstream:38:0,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
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:15:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if((i<=i0)&&(j<=j0))
^
user.cpp:18:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if((i0-i+j0-j)%2!=0)
^
user.cpp:18:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if((i0-i+j0-j)%2!=0)
^
user.cpp:18:28: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘int’ to binary ‘operator%’
if((i0-i+j0-j)%2!=0)
^
user.cpp:22:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if((i<=i0)&&(j>=j0))
^
user.cpp:25:24: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
if((i0-i+j-j0)%2!=0)
^
user.cpp:29:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if((i>=i0)&&(j<=j0))
^
user.cpp:32:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if((i-i0+j0-j)%2!=0)
^
user.cpp:32:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if((i-i0+j0-j)%2!=0)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !