Borderou de evaluare (job #1721648)
Utilizator | Data | 26 iunie 2016 11:45:58 | |
---|---|---|---|
Problema | Memcpy | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:9: error: ‘int y1’ redeclared as different kind of symbol
int x1, y1, x2, y2;
^
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:21:29: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
int n, m; cin >> n >> m >> x1 >> y1 >> x2 >> y2;
^
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:26:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
helper[x1 + i][y1 + j] += 1;
^
user.cpp:26:34: error: invalid types ‘char [1001][double (*)(double)throw ()]’ for array subscript
helper[x1 + i][y1 + j] += 1;
^
user.cpp:43:62: warning: pointer to a function used in arithmetic [-Wpointer-arith]
code = (code + 1LL * step * (x1 + T.first) * (y1 + T.second)) % MOD;
^
user.cpp:43:68: error: invalid operands of types ‘long long int’ and ‘double (*)(double)throw ()’ to binary ‘operator*’
code = (code + 1LL * step * (x1 + T.first) * (y1 + T.second)) % MOD;
^
user.cpp:45:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (helper[x1 + T.first][y1 + T.second] == 2) {
^
user.cpp:45:47: error: invalid types ‘char [1001][double (*)(double)throw ()]’ for array subscript
if (helper[x1 + T.first][y1 + T.second] == 2) {
^
user.cpp:46:56: warning: pointer to a function used in arithmetic [-Wpointer-arith]
H.push(make_pair(x1 + T.first - x2, y1 + T.second - y2));
^
user.cpp:46:65: warning: pointer to a function used in arithmetic [-Wpointer-arith]
H.push(make_pair(x1 + T.first - x2, y1 + T.second - y2));
^
user.cpp:46:68: error: no matching function for call to ‘std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >::push(std::pair<int, double (*)(double)throw ()>)’
H.push(make_pair(x1 + T.first - x2, y1 + T.second - y2));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !