Borderou de evaluare (job #2437260)

Utilizator Ionut28Porumb Palincas Ionut Ionut28 Data 9 iulie 2019 07:29:15
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:56:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(t = 0; t < h[r].size() && h[r][t] != complement; t++); ~~^~~~~~~~~~~~~ main.cpp:56:21: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(t = 0; t < h[r].size() && h[r][t] != complement; t++); ^~~ main.cpp:57:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if( t < h[r].size() && h[r][t] == complement) ^~ main.cpp:57:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( t < h[r].size() && h[r][t] == complement) ~~^~~~~~~~~~~~~ main.cpp:59:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[1] = i; ^ main.cpp:60:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[2] = j; ^ main.cpp:61:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[3] = k; ^ main.cpp:63:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[4] = pct.i1; ^ main.cpp:64:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[5] = pct.i2; ^ main.cpp:65:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript index[6] = pct.i3; ^ main.cpp: In function 'int main()': main.cpp:79:20: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' sort(index + 1, index + 7); ~~~~~~^~~ main.cpp:79:31: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' sort(index + 1, index + 7); ~~~~~~^~~ main.cpp:81:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript fout << v[index[i]] << " "; ^ Non zero exit status: 1

Ceva nu functioneaza?