Borderou de evaluare (job #1799810)

Utilizator killer301Ioan Andrei Nicolae killer301 Data 6 noiembrie 2016 20:27:57
Problema Plan Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:5: error: ‘int index’ redeclared as different kind of symbol int index; ^ In file included from /usr/include/c++/4.8/cstring:42:0, from user.cpp:4: /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:33:14: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’ ind[nod] = index; ^ user.cpp:34:14: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’ Min[nod] = index; ^ user.cpp:36:10: error: no post-increment operator for type index++; ^ user.cpp:38:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<v[nod].size(); i++) ^ user.cpp: In function ‘void dfs_cuplaj(int)’: user.cpp:73:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<g[nod].size(); i++) ^ user.cpp: In function ‘bool pairUp(int)’: user.cpp:84:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<cuplaj[node].size(); i++) ^ user.cpp: In function ‘int main()’: user.cpp:109:11: error: overloaded function with no contextual type information index = 1; ^ user.cpp:115:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0; j<ans[i].size(); j++) ^ user.cpp:119:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0; j<v[i].size(); j++) ^ user.cpp:143:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0; j<List.size(); j++) ^ user.cpp:99:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("plan.in", "r", stdin); ^ user.cpp:102:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:106:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y);

Ceva nu functioneaza?