Borderou de evaluare (job #2413590)
Utilizator | Data | 23 aprilie 2019 15:52:29 | |
---|---|---|---|
Problema | Xor3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7: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:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:248:1: note: previous declaration 'double j1(double)'
__MATHCALL (j1,, (_Mdouble_));
^
main.cpp: In function 'int main()':
main.cpp:11:51: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'double (*)(double) throw ()' [-Wformat=]
scanf("%d%d%d%d%d%d", &q, &i1, &j1, &a, &b, &m);
^
main.cpp:15:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for (int bit = 0; (1 << bit) <= j1; ++ bit)
^~
main.cpp:16:54: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!((i1 + (1 << bit)) & (j1 - (1 << bit))))
^
main.cpp:16:37: error: invalid operands of types 'int' and 'double (*)(double) throw ()' to binary 'operator&'
if (!((i1 + (1 << bit)) & (j1 - (1 << bit))))
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:20:17: error: invalid operands of types 'int' and 'double(double) throw ()' to binary 'operator*'
j1 = (a * j1 + b) % m;
~~^~~~
main.cpp:11:52: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d%d%d", &q, &i1, &j1, &a, &b, &m);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !