Borderou de evaluare (job #986816)

Utilizator florin.elfusFlorin Elfus florin.elfus Data 19 august 2013 15:53:34
Problema Amici2 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:62:27: error: invalid type argument of unary ‘*’ (have ‘int’) if (dist[*it] == 0) { ^ user.cpp:63:27: error: invalid type argument of unary ‘*’ (have ‘int’) dist[*it] = dist[Q[p]] + 1; ^ user.cpp:64:31: error: invalid type argument of unary ‘*’ (have ‘int’) Q[++u] = *it; ^ user.cpp:65:38: error: invalid type argument of unary ‘*’ (have ‘int’) chmax(ans, dist[*it] - 1); ^ user.cpp:24:24: note: in definition of macro ‘max’ #define max(a, b) (a > b ? a : b) ^ user.cpp:65:21: note: in expansion of macro ‘chmax’ chmax(ans, dist[*it] - 1); ^ user.cpp:65:38: error: invalid type argument of unary ‘*’ (have ‘int’) chmax(ans, dist[*it] - 1); ^ user.cpp:24:32: note: in definition of macro ‘max’ #define max(a, b) (a > b ? a : b) ^ user.cpp:65:21: note: in expansion of macro ‘chmax’ chmax(ans, dist[*it] - 1); ^

Ceva nu functioneaza?