Borderou de evaluare (job #2268327)

Utilizator DragescuLeonardDragescuLeonard DragescuLeonard Data 24 octombrie 2018 18:06:46
Problema Intrus Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:20: error: 'int j1' redeclared as different kind of symbol int i,j,n,m,d,p,i1,j1,fix,nr,a[1010][1010],b[1010][1010]; ^~ 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:248:1: note: previous declaration 'double j1(double)' __MATHCALL (j1,, (_Mdouble_)); ^ main.cpp: In function 'int main()': main.cpp:26:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=1;i<=n;i++) ^~~ main.cpp:32:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(i=1;i<=n;i++) ^~~ main.cpp:39:24: error: assignment of function 'double j1(double)' for(j1=1;j1<=m;j1++) ^ main.cpp:39:24: error: cannot convert 'int' to 'double(double) throw ()' in assignment main.cpp:39:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(j1=1;j1<=m;j1++) ^ main.cpp:39:34: warning: ISO C++ forbids incrementing a pointer of type 'double (*)(double) throw ()' [-Wpointer-arith] for(j1=1;j1<=m;j1++) ^~ main.cpp:39:34: error: lvalue required as increment operand main.cpp:40:37: error: invalid types 'int [1010][double(double) throw ()]' for array subscript if(a[i][j]==b[i1][j1]) ^ main.cpp:43:25: error: invalid types 'int [1010][double(double) throw ()]' for array subscript b[i1][j1]=-1; ^ Non zero exit status: 1

Ceva nu functioneaza?