Borderou de evaluare (job #2771562)
Utilizator | Data | 28 august 2021 08:21:02 | |
---|---|---|---|
Problema | Emptri | Status | done |
Runda | Lot 2015 baraj 5 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:9: error: 'll y1' redeclared as different kind of symbol
ll n,x1,y1,x2,y2,ans;
^~
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:251:1: note: previous declaration 'double y1(double)'
__MATHCALL (y1,, (_Mdouble_));
^
main.cpp: In function 'int main()':
main.cpp:15:20: error: assignment of function 'double y1(double)'
for(y1=x1;y1<=n;y1++)
^~
main.cpp:15:20: error: cannot convert 'll {aka long long int}' to 'double(double) throw ()' in assignment
main.cpp:15:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(y1=x1;y1<=n;y1++)
^
main.cpp:15:31: warning: ISO C++ forbids incrementing a pointer of type 'double (*)(double) throw ()' [-Wpointer-arith]
for(y1=x1;y1<=n;y1++)
^~
main.cpp:15:31: error: lvalue required as increment operand
main.cpp:16:24: error: invalid operands of types 'll {aka long long int}' and 'double(double) throw ()' to binary 'operator%'
if(prod%y1==0)
~~~~^~~
main.cpp:18:24: error: invalid operands of types 'll {aka long long int}' and 'double(double) throw ()' to binary 'operator/'
x2=prod/y1;
~~~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !