Borderou de evaluare (job #1398708)

Utilizator vladrochianVlad Rochian vladrochian Data 24 martie 2015 12:54:44
Problema Cuplaj maxim de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:23: error: ‘bool free [605][605]’ redeclared as different kind of symbol bool free[kMaxN][kMaxN]; ^ In file included from /usr/include/c++/4.8/cstdlib:72:0, from /usr/include/c++/4.8/ext/string_conversions.h:41, from /usr/include/c++/4.8/bits/basic_string.h:2815, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/stdlib.h:488:13: error: previous declaration of ‘void free(void*)’ extern void free (void *__ptr) __THROW; ^ user.cpp: In function ‘void BuildGraph()’: user.cpp:35:9: warning: pointer to a function used in arithmetic [-Wpointer-arith] free[x][y] = true; ^ user.cpp:35:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] free[x][y] = true; ^ user.cpp:35:14: error: assignment of read-only location ‘*(free + (((sizetype)x) + ((sizetype)y)))’ free[x][y] = true; ^ user.cpp:35:14: error: cannot convert ‘bool’ to ‘void(void*)throw ()’ in assignment user.cpp:40:9: warning: pointer to a function used in arithmetic [-Wpointer-arith] free[1][i] = true; ^ user.cpp:40:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] free[1][i] = true; ^ user.cpp:40:14: error: assignment of read-only location ‘*(free + (((sizetype)i) + 1u))’ free[1][i] = true; ^ user.cpp:40:14: error: cannot convert ‘bool’ to ‘void(void*)throw ()’ in assignment user.cpp:45:9: warning: pointer to a function used in arithmetic [-Wpointer-arith] free[i][dest] = true; ^ user.cpp:45:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] free[i][dest] = true; ^ user.cpp:45:17: error: assignment of read-only location ‘*(free + (((sizetype)i) + ((sizetype)dest)))’ free[i][dest] = true; ^ user.cpp:45:17: error: cannot convert ‘bool’ to ‘void(void*)throw ()’ in assignment user.cpp: In function ‘bool BellmanFord()’: user.cpp:59:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (free[node][it.first] && dist[node] + it.second < dist[it.first]) {

Ceva nu functioneaza?