Borderou de evaluare (job #2014024)
| Utilizator | Data | 22 august 2017 19:51:48 | |
|---|---|---|---|
| Problema | Banana | Status | done |
| Runda | Teme Pregatire ACM Unibuc 2014, Anul I, Semestrul 2 | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:19:1: error: ‘unordered_map’ does not name a type
unordered_map<pair<int,int>,int>tb;
^
user.cpp: In function ‘int main()’:
user.cpp:56:12: error: ‘tb’ was not declared in this scope
if(tb[mp(x-1,y)]!=0) connect(i,tb[mp(x-1,y)]);
^
user.cpp:57:12: error: ‘tb’ was not declared in this scope
if(tb[mp(x+1,y)]!=0) connect(i,tb[mp(x+1,y)]);
^
user.cpp:58:12: error: ‘tb’ was not declared in this scope
if(tb[mp(x,y-1)]!=0) connect(i,tb[mp(x,y-1)]);
^
user.cpp:59:12: error: ‘tb’ was not declared in this scope
if(tb[mp(x,y+1)]!=0) connect(i,tb[mp(x,y+1)]);
^
user.cpp:60:9: error: ‘tb’ was not declared in this scope
tb[mp(x,y)]=i;
^
user.cpp:48:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("banana.in","r",stdin);
^
user.cpp:49:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("banana.out","w",stdout);
^
user.cpp:50:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
^
user.cpp:55:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
