Borderou de evaluare (job #2562364)

Utilizator AndreiD31Dragan Andrei AndreiD31 Data 29 februarie 2020 13:46:51
Problema Plan Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Tarjan(int)': main.cpp:20:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<v[nod].size(); i++) ~^~~~~~~~~~~~~~ main.cpp: At global scope: main.cpp:41:31: error: 'int j1' redeclared as different kind of symbol int n,i,j,vecin,m,x,y,nr1,nr2,j1,j2,a[301][301],in[301],out[301],IN[301],OUT[301]; ^~ 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:56:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0; j<v[i].size(); j++) ~^~~~~~~~~~~~ main.cpp:76:8: error: assignment of function 'double j1(double)' j1=1;j2=1; ^ main.cpp:76:8: error: cannot convert 'int' to 'double(double) throw ()' in assignment main.cpp:79:31: error: invalid types 'int [301][double(double) throw ()]' for array subscript g<<OUT[j2]<<" "<<IN[j1]<<'\n'; ^ main.cpp:80:16: warning: ISO C++ forbids incrementing a pointer of type 'double (*)(double) throw ()' [-Wpointer-arith] j2++;j1++; ^~ main.cpp:80:16: error: lvalue required as increment operand main.cpp:82:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(j1>nr1)j1=nr1; ^~~ main.cpp:82:22: error: assignment of function 'double j1(double)' if(j1>nr1)j1=nr1; ^~~ main.cpp:82:22: error: cannot convert 'int' to 'double(double) throw ()' in assignment Non zero exit status: 1

Ceva nu functioneaza?