Borderou de evaluare (job #1473016)

Utilizator valentin50517Vozian Valentin valentin50517 Data 18 august 2015 12:38:53
Problema Muzica Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:15: error: expected ‘]’ before numeric constant #define mod 1 000 003 ^ user.cpp:12:8: note: in expansion of macro ‘mod’ lnod H[mod]; ^ user.cpp: In function ‘bool find(int)’: user.cpp:23:18: error: ‘H’ was not declared in this scope for(lnod a = H[info%mod];a;a = a->next){ ^ user.cpp:6:15: error: expected ‘]’ before numeric constant #define mod 1 000 003 ^ user.cpp:23:25: note: in expansion of macro ‘mod’ for(lnod a = H[info%mod];a;a = a->next){ ^ user.cpp: In function ‘int main()’: user.cpp:34:11: error: ‘H’ was not declared in this scope add(A,H[A%mod]); ^ user.cpp:6:15: error: expected ‘]’ before numeric constant #define mod 1 000 003 ^ user.cpp:34:15: note: in expansion of macro ‘mod’ add(A,H[A%mod]); ^ user.cpp:34:18: error: expected ‘;’ before ‘]’ token add(A,H[A%mod]); ^ user.cpp:6:15: error: expected ‘]’ before numeric constant #define mod 1 000 003 ^ user.cpp:35:15: note: in expansion of macro ‘mod’ add(B,H[B%mod]); ^ user.cpp:35:18: error: expected ‘;’ before ‘]’ token add(B,H[B%mod]); ^ user.cpp:6:15: error: expected ‘]’ before numeric constant #define mod 1 000 003 ^ user.cpp:38:36: note: in expansion of macro ‘mod’ if(!find(A)) add(A,H[A%mod]); ^ user.cpp:38:39: error: expected ‘;’ before ‘]’ token if(!find(A)) add(A,H[A%mod]); ^ user.cpp:6:15: error: expected ‘]’ before numeric constant #define mod 1 000 003 ^

Ceva nu functioneaza?