Borderou de evaluare (job #2366633)

Utilizator rares404AlShaytan - Balasescu Rares rares404 Data 4 martie 2019 21:18:33
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 y0' redeclared as different kind of symbol long long x1, y0, 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:250:1: note: previous declaration 'double y0(double)' __MATHCALL (y0,, (_Mdouble_)); ^ main.cpp: In function 'int main()': main.cpp:21:20: error: assignment of function 'double y0(double)' y0 = 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, y0, 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 y0, long long x2, long long y2) { ^~~~~~~~ main.cpp:25:33: error: assignment of function 'double y0(double)' x1 = n - i ; y0 = 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 y0(double)' x1 = 1 ; y0 = 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, y0, 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 y0, long long x2, long long y2) { ^~~~~~~~ main.cpp:32:20: error: assignment of function 'double y0(double)' y0 = 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 y0(double)' x1 = 0 ; y0 = 0 ; ^ main.cpp:46:21: error: cannot convert 'int' to 'double(double) throw ()' in assignment main.cpp:49:30: warning: the address of 'double y0(double)' will never be NULL [-Waddress] if ((x1 == 0 && y0 == 0) || directie(x1, y0, 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 && y0 == 0) || directie(x1, y0, j * d + j, mat[i + i * d][j * d + j])) { Non zero exit status: 1

Ceva nu functioneaza?