Borderou de evaluare (job #2391722)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 29 martie 2019 10:00:37
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:1: error: 'N' does not name a type N *h[M],*p,*q; ^ main.cpp: In function 'int main()': main.cpp:31:31: error: 'p' was not declared in this scope for(x=A(),y=A(),z=y%M,p=q=h[z];p&&p->I!=y;q=p,p=p->U); ^ main.cpp:31:33: error: 'q' was not declared in this scope for(x=A(),y=A(),z=y%M,p=q=h[z];p&&p->I!=y;q=p,p=p->U); ^ main.cpp:31:35: error: 'h' was not declared in this scope for(x=A(),y=A(),z=y%M,p=q=h[z];p&&p->I!=y;q=p,p=p->U); ^ main.cpp:32:19: error: 'p' was not declared in this scope if(x==1&&!p) ^ main.cpp:33:19: error: 'N' does not name a type p=new N,p->U=h[z],p->I=y,h[z]=p; ^ main.cpp:33:26: error: 'h' was not declared in this scope p=new N,p->U=h[z],p->I=y,h[z]=p; ^ main.cpp:35:13: error: 'q' was not declared in this scope q==p?h[z]=h[z]->U:q->U=p->U; ^ main.cpp:35:18: error: 'h' was not declared in this scope q==p?h[z]=h[z]->U:q->U=p->U; ^ main.cpp:28:95: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("hashuri.in","r",stdin),freopen("hashuri.out","w",stdout),fread(r,1,P,stdin),n=A(); ^ main.cpp:28:95: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] main.cpp:28:95: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] Non zero exit status: 1

Ceva nu functioneaza?