Borderou de evaluare (job #2742938)

Utilizator mateilazarescumateilazarescu mateilazarescu Data 22 aprilie 2021 12:53:11
Problema Castel Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:30: error: 'int yn' redeclared as different kind of symbol int n,m,k,i,j,cnt,x,y,rez,xn,yn; ^~ 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:252:1: note: previous declaration 'double yn(int, double)' __MATHCALL (yn,, (int, _Mdouble_)); ^ main.cpp: In function 'int main()': main.cpp:29:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<v[cnt].size();i++) ~^~~~~~~~~~~~~~ main.cpp:39:22: error: assignment of function 'double yn(int, double)' yn=y+vj[i]; ^ main.cpp:39:22: error: cannot convert 'int' to 'double(int, double) throw ()' in assignment main.cpp:40:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] cnt=(xn-1)*m+yn; ^~ main.cpp:40:25: error: invalid conversion from 'double (*)(int, double) throw ()' to 'int' [-fpermissive] cnt=(xn-1)*m+yn; ~~~~~~~~^~~ main.cpp:41:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(xn<1 or xn>n or yn<1 or yn>m) ^ main.cpp:41:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(xn<1 or xn>n or yn<1 or yn>m) ^ main.cpp:43:43: error: invalid types 'int [155][double(int, double) throw ()]' for array subscript if(!used[cnt] and a[mat[xn][yn]]) ^ main.cpp:49:29: error: invalid types 'int [155][double(int, double) throw ()]' for array subscript v[mat[xn][yn]].push_back(cnt); ^ Non zero exit status: 1

Ceva nu functioneaza?