Borderou de evaluare (job #2362110)
Utilizator | Data | 2 martie 2019 22:05:52 | |
---|---|---|---|
Problema | Ace | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:15: error: 'long long int y1' redeclared as different kind of symbol
long long x1, y1, x2, y2 ;
^~
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 'int main()':
main.cpp:21:20: error: assignment of function 'double y1(double)'
y1 = mat[n - 1][m] ;
^
main.cpp:21:20: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:23:42: error: invalid conversion from 'double (*)(double) throw ()' to 'long long int' [-fpermissive]
if (directie(x1, y1, n - i, mat[i][m])) {
^
main.cpp:10:6: note: initializing argument 2 of 'bool directie(long long int, long long int, long long int, long long int)'
bool directie(long long x1, long long y1, long long x2, long long y2) {
^~~~~~~~
main.cpp:25:33: error: assignment of function 'double y1(double)'
x1 = n - i ; y1 = mat[i][m] ; } }
^
main.cpp:25:33: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:27:29: error: assignment of function 'double y1(double)'
x1 = 1 ; y1 = mat[n][m - 1] ;
^
main.cpp:27:29: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:29:42: error: invalid conversion from 'double (*)(double) throw ()' to 'long long int' [-fpermissive]
if (directie(x1, y1, m - i, mat[n][i])) {
^
main.cpp:10:6: note: initializing argument 2 of 'bool directie(long long int, long long int, long long int, long long int)'
bool directie(long long x1, long long y1, long long x2, long long y2) {
^~~~~~~~
main.cpp:32:20: error: assignment of function 'double y1(double)'
y1 = mat[n][i] ; } }
^
main.cpp:32:20: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:46:21: error: assignment of function 'double y1(double)'
x1 = 0 ; y1 = 0 ;
^
main.cpp:46:21: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:49:30: warning: the address of 'double y1(double)' will never be NULL [-Waddress]
if ((x1 == 0 && y1 == 0) || directie(x1, y1, j * d + j, mat[i + i * d][j * d + j])) {
~~~^~~~
main.cpp:49:92: error: invalid conversion from 'double (*)(double) throw ()' to 'long long int' [-fpermissive]
if ((x1 == 0 && y1 == 0) || directie(x1, y1, j * d + j, mat[i + i * d][j * d + j])) {
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !