Borderou de evaluare (job #1066291)
Utilizator | Data | 24 decembrie 2013 14:51:15 | |
---|---|---|---|
Problema | Zuzu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:24: error: ‘double y1 [41]’ redeclared as different kind of symbol
double x1[maxn],y1[maxn],z1[maxn],x2[maxn],z2[maxn],y2[maxn];
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/iosfwd:38,
from /usr/local/include/c++/4.8.0/ios:38,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:46:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fin>>x1[i]>>y1[i]>>z1[i]>>x2[i]>>y2[i]>>z2[i]>>d[i];
^
user.cpp:46:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
fin>>x1[i]>>y1[i]>>z1[i]>>x2[i]>>y2[i]>>z2[i]>>d[i];
^
In file included from /usr/local/include/c++/4.8.0/fstream:38:0,
from user.cpp:1:
/usr/local/include/c++/4.8.0/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:66:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y[tt] = y1[i];
^
user.cpp:66:19: error: cannot convert ‘double(double)throw ()’ to ‘double’ in assignment
y[tt] = y1[i];
^
user.cpp:109:72: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (x1[ii] <= x[i-1] && x[i] <= x2[ii] && y1[ii] <= y[j-1] && y[j] <= y2[ii] && z2[ii] <= z[k-1] && z[k] <= z1[ii])
^
user.cpp:109:82: error: invalid operands of types ‘double(double)throw ()’ and ‘double’ to binary ‘operator<=’
if (x1[ii] <= x[i-1] && x[i] <= x2[ii] && y1[ii] <= y[j-1] && y[j] <= y2[ii] && z2[ii] <= z[k-1] && z[k] <= z1[ii])
^
user.cpp:169:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
case 3: y1[i]++; y2[i]++; break;
^
user.cpp:169:30: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
case 3: y1[i]++; y2[i]++; break;
^
user.cpp:169:30: error: lvalue required as increment operand
user.cpp:170:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
case 4: y1[i]--; y2[i]--; break;
^
user.cpp:170:30: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
case 4: y1[i]--; y2[i]--; break;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !