Borderou de evaluare (job #1151451)
Utilizator | Data | 24 martie 2014 09:59:53 | |
---|---|---|---|
Problema | Segmente | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:10: error: ‘long int y1’ redeclared as different kind of symbol
long x1, y1, x2, y2;
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/cstdio:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:35:52: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%ld %ld %ld %ld", &x1, &y1, &x2, &y2);
^
user.cpp:36:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y1 == y2) {
^
user.cpp:41:19: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘long int’ [-fpermissive]
tmp.p = y1;
^
user.cpp:44:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y1 > y2)
^
user.cpp:45:32: error: invalid operands of types ‘double(double)throw ()’ and ‘long int’ to binary ‘operator^’
y1 ^= y2 ^= y1 ^= y2;
^
user.cpp:45:32: error: in evaluation of ‘operator^=(double(double)throw (), long int)’
user.cpp:46:19: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘long int’ [-fpermissive]
tmp.a = y1;
^
user.cpp:54:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < v.size(); i++)
^
user.cpp:55:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = i + 1; j <= v.size(); j++) {
^
user.cpp:57:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k = 0; k < h.size(); k++) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !