Borderou de evaluare (job #1960113)
Utilizator | Data | 10 aprilie 2017 10:50:16 | |
---|---|---|---|
Problema | Intrus | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:29: error: ‘int y1’ redeclared as different kind of symbol
int n, m, d, nrmax, x1, x2, y1, y2;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void Solve2()’:
user.cpp:100:20: error: assignment of function ‘double y1(double)’
y1 = j - d / 2;
^
user.cpp:100:20: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:107:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (y1 < 1)
^
user.cpp:108:24: error: assignment of function ‘double y1(double)’
y1 = 1;
^
user.cpp:108:24: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:116:34: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
for (int q = y1; q <= y2; q++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !