Borderou de evaluare (job #1956254)
Utilizator | Data | 6 aprilie 2017 16:46:43 | |
---|---|---|---|
Problema | Paralelipiped | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:44: error: ‘int y1 [76]’ redeclared as different kind of symbol
int x1[1 + MAXN], x2[1 + MAXN], y1[1 + MAXN], y2[1 + MAXN], z1[1 + MAXN], z2[1 + MAXN];
^
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:17:42: error: ‘int yn [20001]’ redeclared as different kind of symbol
int xn[1 + 2 * OFFSET], yn[1 + 2 * OFFSET], zn[1 + 2 * OFFSET];
^
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:244:1: error: previous declaration of ‘double yn(int, double)’
__MATHCALL (yn,, (int, _Mdouble_));
^
user.cpp: In function ‘void Normalize(int, int*, int*, int*, int*, int&)’:
user.cpp:21:25: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(vn, 0, sizeof(vn));
^
user.cpp: In function ‘int main()’:
user.cpp:45:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
cin >> x1[i] >> y1[i] >> z1[i] >> x2[i] >> y2[i] >> z2[i];
^
user.cpp:45:17: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
cin >> x1[i] >> y1[i] >> z1[i] >> x2[i] >> y2[i] >> z2[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:48:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[i] += OFFSET;
^
user.cpp:48:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[i] += OFFSET;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !