Borderou de evaluare (job #1958665)
Utilizator | Data | 8 aprilie 2017 16:13:31 | |
---|---|---|---|
Problema | Xor3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:12: error: ‘int j1’ redeclared as different kind of symbol
int Q, i1, j1, a, b, M;
^
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:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:38:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f >> Q >> i1 >> j1 >> a >> b >> M;
^
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:41:26: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
g << Solve(i1, j1) << "\n";
^
user.cpp:19:5: error: initializing argument 2 of ‘int Solve(int, int)’ [-fpermissive]
int Solve(int x, int y)
^
user.cpp:43:20: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator*’
j1 = (j1 * a + b) % M;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !