Borderou de evaluare (job #2333140)
Utilizator | Data | 31 ianuarie 2019 18:42:21 | |
---|---|---|---|
Problema | Compresie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:15:9: error: 'int y1' redeclared as different kind of symbol
int x1, y1, x2, y2 , noux , nouy ;
^~
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/iosfwd:38,
from /usr/include/c++/6/ios:38,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
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 'void calc_lat()':
main.cpp:19:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i<strlen(s) ; i++)
~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:78:10: error: assignment of function 'double y1(double)'
y1 = 0 ;
^
main.cpp:78:10: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:81:20: error: invalid conversion from 'double (*)(double) throw ()' to 'int' [-fpermissive]
imp(x1,y1,x2,y2) ;
^
main.cpp:39:6: note: initializing argument 2 of 'void imp(int, int, int, int)'
void imp(int x1, int y1, int x2, int y2)
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !