Borderou de evaluare (job #1462803)

Utilizator om6gaLungu Adrian om6ga Data 19 iulie 2015 00:47:03
Problema Secventa Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:17: error: ‘int index’ redeclared as different kind of symbol int n, k, baza, index; ^ In file included from user.cpp:2:0: /usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’ index (__const char *__s, int __c) __THROW ^ user.cpp: In function ‘int main()’: user.cpp:48:23: error: overloaded function with no contextual type information index = deque[first]; ^ user.cpp:53:20: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ while (a[index-1] > baza) ^ user.cpp:54:14: error: no post-decrement operator for type index--; ^ user.cpp:55:49: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ fprintf(out, "%d %d %d\n", index, index + k-1, baza); ^ user.cpp:19:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d %d\n", &n, &k); ^ user.cpp:21:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(string, SIZE, in); ^

Ceva nu functioneaza?