Borderou de evaluare (job #2552146)

Utilizator Codrut112Codrut Copas Codrut112 Data 20 februarie 2020 16:58:04
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:29: error: 'int j1' redeclared as different kind of symbol int n,s,v[101],i,i1,i2,i3,j,j1,j2,l,x,ok,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:248:1: note: previous declaration 'double j1(double)' __MATHCALL (j1,, (_Mdouble_)); ^ main.cpp: In function 'int main()': main.cpp:29:44: error: assignment of function 'double j1(double)' for(j1=1; j1<j; j1++) ^ main.cpp:29:44: error: cannot convert 'int' to 'double(double) throw ()' in assignment main.cpp:29:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(j1=1; j1<j; j1++) ^ main.cpp:29:55: warning: ISO C++ forbids incrementing a pointer of type 'double (*)(double) throw ()' [-Wpointer-arith] for(j1=1; j1<j; j1++) ^~ main.cpp:29:55: error: lvalue required as increment operand main.cpp:31:52: error: invalid types 'int [101][double(double) throw ()]' for array subscript if(v[j1]==1 and v[j2]==1 and j1+j2==j) ^ main.cpp:31:77: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(v[j1]==1 and v[j2]==1 and j1+j2==j) ^~ main.cpp:31:81: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(v[j1]==1 and v[j2]==1 and j1+j2==j) ^ main.cpp:36:54: error: invalid conversion from 'double (*)(double) throw ()' to 'int' [-fpermissive] v[4]=j1; ^~ Non zero exit status: 1

Ceva nu functioneaza?