Borderou de evaluare (job #2417522)
Utilizator | Data | 30 aprilie 2019 11:50:54 | |
---|---|---|---|
Problema | Triunghi2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:23: error: 'int y1 [100]' redeclared as different kind of symbol
int n, x1[100], y1[100], x2[100], y2[100], x3[100], y3[100], x, y, ans[100], k;
^
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/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33,
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 'bool in(int, int, int)':
main.cpp:16:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int a = aria (x1[i], y1[i], x2[i], y2[i], x, y);
^
main.cpp:16:28: error: invalid conversion from 'double (*)(double) throw ()' to 'int' [-fpermissive]
int a = aria (x1[i], y1[i], x2[i], y2[i], x, y);
~~~~^
main.cpp:11:5: note: initializing argument 2 of 'int aria(int, int, int, int, int, int)'
int aria(int x1, int y1, int x2, int y2, int x3, int y3) {
^~~~
main.cpp:17:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int b = aria (x1[i], y1[i], x3[i], y3[i], x, y);
^
main.cpp:17:28: error: invalid conversion from 'double (*)(double) throw ()' to 'int' [-fpermissive]
int b = aria (x1[i], y1[i], x3[i], y3[i], x, y);
~~~~^
main.cpp:11:5: note: initializing argument 2 of 'int aria(int, int, int, int, int, int)'
int aria(int x1, int y1, int x2, int y2, int x3, int y3) {
^~~~
main.cpp:19:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (a + b + c == aria(x1[i], y1[i], x2[i], y2[i], x3[i], y3[i]))
^
main.cpp:19:36: error: invalid conversion from 'double (*)(double) throw ()' to 'int' [-fpermissive]
if (a + b + c == aria(x1[i], y1[i], x2[i], y2[i], x3[i], y3[i]))
~~~~^
main.cpp:11:5: note: initializing argument 2 of 'int aria(int, int, int, int, int, int)'
int aria(int x1, int y1, int x2, int y2, int x3, int y3) {
^~~~
main.cpp: In function 'int main()':
main.cpp:27:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fin >> x1[i] >> y1[i] >> x2[i] >> y2[i] >> x3[i] >> y3[i];
^
main.cpp:27:18: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' and 'double(double) throw ()')
fin >> x1[i] >> y1[i] >> x2[i] >> y2[i] >> x3[i] >> y3[i];
~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/6/sstream:38:0,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !