Borderou de evaluare (job #1523262)
| Utilizator | Data | 12 noiembrie 2015 15:35:04 | |
|---|---|---|---|
| Problema | Colaj | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:10:20: error: ‘int y1 [201]’ redeclared as different kind of symbol
int x1[201], y1[201];
^
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 main()’:
user.cpp:33:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
f >> x1[i] >> y1[i];
^
user.cpp:33:11: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f >> x1[i] >> y1[i];
^
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:34:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
f1[ x1[i] ] = 1, f2[ y1[i] ] = 1;
^
user.cpp:34:36: error: invalid types ‘bool [6000][double(double)throw ()]’ for array subscript
f1[ x1[i] ] = 1, f2[ y1[i] ] = 1;
^
user.cpp:51:63: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (x1[k] <= x[i] && x1[k+1] >= x[i+1] && y1[k] <= y[j] && y1[k+1] >= y[j+1])
^
user.cpp:51:71: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (x1[k] <= x[i] && x1[k+1] >= x[i+1] && y1[k] <= y[j] && y1[k+1] >= y[j+1])
^
user.cpp:51:82: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (x1[k] <= x[i] && x1[k+1] >= x[i+1] && y1[k] <= y[j] && y1[k+1] >= y[j+1])
^
user.cpp:51:82: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:51:92: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (x1[k] <= x[i] && x1[k+1] >= x[i+1] && y1[k] <= y[j] && y1[k+1] >= y[j+1])
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
