Borderou de evaluare (job #2503683)
Utilizator | Data | 3 decembrie 2019 17:54:36 | |
---|---|---|---|
Problema | Armonica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:27: error: 'long long unsigned int y1' redeclared as different kind of symbol
unsigned long long 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/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 'int main()':
main.cpp:77:38: error: assignment of function 'double y1(double)'
y1=(b*(b/asa)+b)/2;
^
main.cpp:77:38: error: cannot convert 'long long unsigned int' to 'double(double) throw ()' in assignment
main.cpp:82:34: error: assignment of function 'double y1(double)'
y1=b*(b/asa)+b;
^
main.cpp:82:34: error: cannot convert 'long long unsigned int' to 'double(double) throw ()' in assignment
main.cpp:85:66: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'double (*)(double) throw ()' [-Wformat=]
fprintf(g,"%lld %lld \n %lld %lld \n",x1,y1,y1,x1);
^
main.cpp:85:66: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'double (*)(double) throw ()' [-Wformat=]
main.cpp:128:38: error: assignment of function 'double y1(double)'
y1=(b*(b/asa)+b)/2;
^
main.cpp:128:38: error: cannot convert 'long long unsigned int' to 'double(double) throw ()' in assignment
main.cpp:133:34: error: assignment of function 'double y1(double)'
y1=b*(b/asa)+b;
^
main.cpp:133:34: error: cannot convert 'long long unsigned int' to 'double(double) throw ()' in assignment
main.cpp:136:46: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'double (*)(double) throw ()' [-Wformat=]
fprintf(g,"%lld %lld\n",x1,y1);
^
main.cpp:14:20: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%lld",&b);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !