Borderou de evaluare (job #1364308)
Utilizator | Data | 27 februarie 2015 16:41:20 | |
---|---|---|---|
Problema | Geometry | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:36: error: ‘int y1 [512]’ redeclared as different kind of symbol
int x[512], y[512], x1[512], y1[512], a[512], b[512], c[512];
^
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/cstdio:41,
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:17:58: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf ("%d %d %d %d", &x[i], &y[i], &x1[i], &y1[i]);
^
user.cpp:17:59: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf ("%d %d %d %d", &x[i], &y[i], &x1[i], &y1[i]);
^
user.cpp:23:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int a1 = y[i] - y1[i];
^
user.cpp:23:33: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
user.cpp:25:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int c1 = x[i] * y1[i] - x1[i] * y[i];
^
user.cpp:25:33: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’
user.cpp:27:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int a2 = y[j] - y1[j];
^
user.cpp:27:33: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
user.cpp:29:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int c2 = x[j] * y1[j] - x1[j] * y[j];
^
user.cpp:29:33: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’
user.cpp:31:76: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int d1 = (a1 * x[j] + b1 * y[j] + c1) * (a1 * x1[j] + b1 * y1[j] + c1);
^
user.cpp:31:76: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’
user.cpp:32:76: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int d2 = (a2 * x[i] + b2 * y[i] + c2) * (a2 * x1[i] + b2 * y1[i] + c2);
^
user.cpp:32:76: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator*’
user.cpp:40:48: warning: pointer to a function used in arithmetic [-Wpointer-arith]
bool OK2 = (min (y[j], y1[j]) <= max (y[i], y1[i]) && min (y[i], y1[i]) <= max (y[j], y1[j]));
^
user.cpp:40:49: error: no matching function for call to ‘min(int&, double (&)(double)throw ())’
bool OK2 = (min (y[j], y1[j]) <= max (y[i], y1[i]) && min (y[i], y1[i]) <= max (y[j], y1[j]));
^
user.cpp:40:49: note: candidates are:
In file included from /usr/include/c++/4.8/algorithm:61:0,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !