Borderou de evaluare (job #2306091)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 21 decembrie 2018 16:54:10
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:1: error: 'N' does not name a type N h[M],p,q; ^ main.cpp: In function 'int main()': main.cpp:16:13: error: 'p' was not declared in this scope for(p=q=h[z];p&&p->I!=y;q=p,p=p->U); ^ main.cpp:16:15: error: 'q' was not declared in this scope for(p=q=h[z];p&&p->I!=y;q=p,p=p->U); ^ main.cpp:16:17: error: 'h' was not declared in this scope for(p=q=h[z];p&&p->I!=y;q=p,p=p->U); ^ main.cpp:17:19: error: 'p' was not declared in this scope if(x==1&&!p) ^ main.cpp:19:19: error: 'N' does not name a type p=new N; ^ main.cpp:20:18: error: 'h' was not declared in this scope p->U=h[z],p->I=y,h[z]=p; ^ main.cpp:23:18: error: 'p' was not declared in this scope if(x==2&&p) ^ main.cpp:25:13: error: 'q' was not declared in this scope q==p?h[z]=h[z]->U:q->U=p->U; ^ main.cpp:25:18: error: 'h' was not declared in this scope q==p?h[z]=h[z]->U:q->U=p->U; ^ main.cpp:29:27: error: 'p' was not declared in this scope printf("%d\n",p?1:0); ^ main.cpp:12:85: 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),scanf("%d",&n); ^ main.cpp:12:85: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] main.cpp:12:85: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] main.cpp:15:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y),z=y%M; ^ Non zero exit status: 1

Ceva nu functioneaza?