Borderou de evaluare (job #1616282)

Utilizator AdrianGotcaAdrian Gotca AdrianGotca Data 27 februarie 2016 10:52:00
Problema Rfinv Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:22:22: error: incompatible types in assignment of ‘int’ to ‘int [60]’ G[j] = 0; ^ user.cpp:26:25: error: incompatible types in assignment of ‘int’ to ‘int [60]’ G[a] = G[a] = 1; //Exista muchie intre a si b ^ user.cpp:30:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int (*)[60]’ [-Wformat=] scanf("%d", &C[j]); ^ user.cpp:31:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(G[j] == 1) ^ user.cpp:32:26: error: invalid array assignment G[j] = C[j]; ^ user.cpp:4:22: warning: integer overflow in expression [-Woverflow] #define inf ((2<<30)-1) ^ user.cpp:34:28: note: in expansion of macro ‘inf’ G[j] = inf; ^ user.cpp:34:26: error: incompatible types in assignment of ‘int’ to ‘int [60]’ G[j] = inf; ^ user.cpp:4:22: warning: integer overflow in expression [-Woverflow] #define inf ((2<<30)-1) ^ user.cpp:40:32: note: in expansion of macro ‘inf’ if(G[k] != inf && G[k][j] != inf) ^ user.cpp:4:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] #define inf ((2<<30)-1) ^ user.cpp:40:32: note: in expansion of macro ‘inf’ if(G[k] != inf && G[k][j] != inf) ^ user.cpp:4:22: warning: integer overflow in expression [-Woverflow] #define inf ((2<<30)-1) ^ user.cpp:40:50: note: in expansion of macro ‘inf’ if(G[k] != inf && G[k][j] != inf) ^ user.cpp:43:34: error: incompatible types in assignment of ‘int*’ to ‘int [60]’ G[j] = G[k] + G[k][j]; ^ user.cpp:4:22: warning: integer overflow in expression [-Woverflow] #define inf ((2<<30)-1) ^ user.cpp:46:28: note: in expansion of macro ‘inf’

Ceva nu functioneaza?