Borderou de evaluare (job #1427971)

Utilizator ButnaruButnaru George Butnaru Data 3 mai 2015 13:37:54
Problema Muzica Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:2:2: error: invalid preprocessing directive #defin #defin mod 1056013 ^ user.cpp:5:13: error: ‘mod’ was not declared in this scope lista *hash[mod+1]; ^ user.cpp: In function ‘int dif(int)’: user.cpp:10:12: error: ‘mod’ was not declared in this scope if (x>=mod) return x%mod; else return x; ^ user.cpp: In function ‘bool inhash(int, int)’: user.cpp:14:17: error: ‘hash’ was not declared in this scope lista *a; a=hash[xx]; ^ user.cpp: In function ‘void add_hash(int)’: user.cpp:24:12: error: ‘mod’ was not declared in this scope if (x>=mod) xx=x%mod; else xx=x; ^ user.cpp:26:38: error: ‘hash’ was not declared in this scope p=new lista; p->m=x; p->next=hash[xx]; hash[xx]=p; ^ user.cpp: In function ‘void findanddelete(int, int)’: user.cpp:31:17: error: ‘hash’ was not declared in this scope lista *a; a=hash[xx]; ^ user.cpp: In function ‘int main()’: user.cpp:40:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("muzica.in","r",stdin); ^ user.cpp:41:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("muzica.out","w",stdout); ^ user.cpp:42:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ user.cpp:43:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld%lld%lld%lld",&a,&b,&c,&d,&e); ^ user.cpp:45:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&xx); add_hash(xx); ^ user.cpp: In function ‘int dif(int)’: user.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?