Borderou de evaluare (job #2306060)
| Utilizator | Data | 21 decembrie 2018 16:20:51 | |
|---|---|---|---|
| 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:17: error: 'p' was not declared in this scope
for(o=0,p=h[y%M];p&&!o;p=p->U)
^
main.cpp:16:19: error: 'h' was not declared in this scope
for(o=0,p=h[y%M];p&&!o;p=p->U)
^
main.cpp:21:13: error: 'p' was not declared in this scope
p=new N;
^
main.cpp:21:19: error: 'N' does not name a type
p=new N;
^
main.cpp:22:18: error: 'h' was not declared in this scope
p->U=h[y%M],p->I=y,h[y%M]=p;
^
main.cpp:27:17: error: 'p' was not declared in this scope
for(p=q=h[y%M];p&&p->I!=y;q=p,p=p->U);
^
main.cpp:27:19: error: 'q' was not declared in this scope
for(p=q=h[y%M];p&&p->I!=y;q=p,p=p->U);
^
main.cpp:27:21: error: 'h' was not declared in this scope
for(p=q=h[y%M];p&&p->I!=y;q=p,p=p->U);
^
main.cpp:28:16: error: 'p' was not declared in this scope
if(p)
^
main.cpp:30:20: error: 'q' was not declared in this scope
if(q==p)
^
main.cpp:31:21: error: 'h' was not declared in this scope
h[y%M]=h[y%M]->U;
^
main.cpp:34:24: error: type '<type error>' argument given to 'delete', expected pointer
delete p;
^
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:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
