Borderou de evaluare (job #2022933)

Utilizator Dan_RadulescuRadulescu Dan Dan_Radulescu Data 17 septembrie 2017 19:15:56
Problema Stramosi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:70: error: ‘int index’ redeclared as different kind of symbol int st[N], nr, n, m, i, a, p, q, father[N], v[18][N], vis[N], power, index, res; ^ In file included from /usr/include/c++/4.8/cstring:42:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:48, from user.cpp:1: /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 ‘void DFS(int)’: user.cpp:18:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < G[k].size(); i++) ^ user.cpp: In function ‘int main()’: user.cpp:51:26: error: overloaded function with no contextual type information power = 1; index = 1; ^ user.cpp:54:18: error: no post-increment operator for type index++; ^ user.cpp:57:14: error: no post-decrement operator for type index--; ^ user.cpp:59:24: error: invalid types ‘int [18][250001][<unresolved overloaded function type>]’ for array subscript index = v[index][q]; ^ user.cpp:60:13: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’ res = index; ^ user.cpp:61:25: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator!=’ while (index != 0 && power <= p) ^ user.cpp:64:17: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’ res = index; ^ user.cpp:65:33: error: invalid types ‘int [250001][<unresolved overloaded function type>]’ for array subscript index = father[index]; ^ user.cpp:34:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1, "%d%d", &n, &m); ^ user.cpp:37:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1, "%d", &father[i]); ^ user.cpp:50:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1, "%d%d", &q, &p); ^

Ceva nu functioneaza?