Borderou de evaluare (job #2437259)

Utilizator Ionut28Porumb Palincas Ionut Ionut28 Data 9 iulie 2019 07:16:25
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:28: error: 'int index [10]' redeclared as different kind of symbol int n, s, v[nmax], index[10]; ^ 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 Solve()': main.cpp:52:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int t = 0; t < h[r].size() && h[r][t] != complement; t++) ~~^~~~~~~~~~~~~ main.cpp:56:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[1] = i; ^ main.cpp:57:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[2] = j; ^ main.cpp:58:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[3] = k; ^ main.cpp:60:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[4] = pct.i1; ^ main.cpp:61:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[5] = pct.i2; ^ main.cpp:62:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[6] = pct.i3; ^ main.cpp: In function 'int main()': main.cpp:77:20: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' sort(index + 1, index + 7); ~~~~~~^~~ main.cpp:77:31: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' sort(index + 1, index + 7); ~~~~~~^~~ main.cpp:79:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript fout << v[index[i]] << " "; ^ Non zero exit status: 1

Ceva nu functioneaza?