Borderou de evaluare (job #2677667)

Utilizator LeVladzCiuperceanu Vlad LeVladz Data 27 noiembrie 2020 09:26:56
Problema Semafor2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:17: error: 'int index' redeclared as different kind of symbol int n,m,i,x,y,z,index,v[80005],low[80005],sol[40005]; ^~~~~ In file included from /usr/include/c++/6/cstring:42:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48, from main.cpp:1: /usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)' index (const char *__s, int __c) __THROW ^~~~~ main.cpp: In function 'void dfs(int)': main.cpp:14:10: error: no post-increment operator for type index++; v[nod] = index; low[nod] = index; ^~ main.cpp:14:23: error: cannot resolve overloaded function 'index' based on conversion to type 'int' index++; v[nod] = index; low[nod] = index; ^~~~~ main.cpp:14:41: error: cannot resolve overloaded function 'index' based on conversion to type 'int' index++; v[nod] = index; low[nod] = index; ^~~~~ main.cpp:16:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<L[nod].size(); i++) ~^~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?