Borderou de evaluare (job #1865892)
Utilizator | Data | 2 februarie 2017 11:54:32 | |
---|---|---|---|
Problema | Miting | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:20: error: ‘short int y1’ redeclared as different kind of symbol
short x1, x2 = 70, y1, y2 = 70;
^
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 ‘int main()’:
user.cpp:29:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (j > y1) y1 = j;
^
user.cpp:29:36: error: assignment of function ‘double y1(double)’
if (j > y1) y1 = j;
^
user.cpp:29:36: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:31:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
cout << (x1 - x2 + 1)*(y1 - y2 + 1);}}
^
user.cpp:31:42: warning: pointer to a function used in arithmetic [-Wpointer-arith]
cout << (x1 - x2 + 1)*(y1 - y2 + 1);}}
^
user.cpp:31:43: error: invalid operands of types ‘int’ and ‘double (*)(double)throw ()’ to binary ‘operator*’
cout << (x1 - x2 + 1)*(y1 - y2 + 1);}}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !