Borderou de evaluare (job #1869513)
Utilizator | Data | 5 februarie 2017 21:40:42 | |
---|---|---|---|
Problema | Alee | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:1: error: ‘queue’ does not name a type
queue < pair <int,int> >coada;
^
user.cpp: In function ‘int alglee()’:
user.cpp:30:1: error: ‘coada’ was not declared in this scope
coada.push(make_pair(startx,starty));
^
user.cpp:30:35: error: ‘make_pair’ was not declared in this scope
coada.push(make_pair(startx,starty));
^
user.cpp:30:35: note: suggested alternative:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/deque:60,
from /usr/include/c++/4.8/queue:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_pair.h:276:5: note: ‘std::make_pair’
make_pair(_T1&& __x, _T2&& __y)
^
user.cpp:46:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘void citire()’:
user.cpp:12: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:15:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
user.cpp:19:52: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&startx,&starty,&stopx,&stopy);
^
user.cpp: In function ‘int main()’:
user.cpp:51:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("f.in","r",stdin);
^
user.cpp:52:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("f.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !