Borderou de evaluare (job #2506768)
Utilizator | Data | 8 decembrie 2019 19:10:24 | |
---|---|---|---|
Problema | Concurs | Status | done |
Runda | RoadToIOI #3 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:20:16: error: 'int y1' redeclared as different kind of symbol
int acm,ans,x1,y1;
^~
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:52:76: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(Val[acm] > ans || (Val[acm] == ans && (xx<x1 || (x1 == xx && yx<y1)))){
^~
main.cpp:55:15: error: assignment of function 'double y1(double)'
y1=yx;
^~
main.cpp:55:15: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:58:30: warning: the address of 'double y1(double)' will always evaluate as 'true' [-Waddress]
fout<<ans<<' '<<x1<<' '<<y1<<'\n';
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !