Borderou de evaluare (job #2505201)

Utilizator rares404AlShaytan - Balasescu Rares rares404 Data 6 decembrie 2019 14:58:05
Problema Arc Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:17:5: error: 'int index' redeclared as different kind of symbol int index ; ^~~~~ 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 'int getMax()': main.cpp:21:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<=' for (int i = 1 ; i <= index ; ++ i) { ~~^~~~~~~~ main.cpp: In function 'void rebuild(int)': main.cpp:29:24: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<=' for (i = 1 ; i <= index && maxLength != arcs[i].length ; ++ i) ; ~~^~~~~~~~ main.cpp:33:54: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-' for (i = extractPos + 1 ; i <= index - 2 ; ++ i) { ~~~~~~^~~ main.cpp:36:26: error: overloaded function with no contextual type information index -= 2 ; ^ main.cpp:38:54: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-' for (i = extractPos + 1 ; i <= index - 1 ; ++ i) { ~~~~~~^~~ main.cpp:41:23: error: no post-decrement operator for type index -- ; ^~ main.cpp: In function 'int main()': main.cpp:52:35: error: invalid types 'subsequence [10001][<unresolved overloaded function type>]' for array subscript arcs[index].length ++ ; ^ main.cpp:54:31: error: no post-increment operator for type index ++ ; ^~ main.cpp:55:35: error: invalid types 'subsequence [10001][<unresolved overloaded function type>]' for array subscript arcs[index].fix(currColor, 1) ; ^ main.cpp:60:48: error: overloaded function with no contextual type information return fprintf(out, "%d", index), 0 ; ^ main.cpp:66:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<=' for (int i = 1 ; i <= index ; ++ i) { ~~^~~~~~~~ main.cpp:70:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<=' for (int i = 1 ; i <= index ; ++ i) { ~~^~~~~~~~ main.cpp:47:41: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d %d", &query, &n) ; Non zero exit status: 1

Ceva nu functioneaza?