Borderou de evaluare (job #2697218)
Utilizator | Data | 17 ianuarie 2021 20:17:16 | |
---|---|---|---|
Problema | Teroristi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int bfs()':
main.cpp:22:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[nod].size();i++)
~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:40:15: error: 'gets' was not declared in this scope
gets(sir+1);
^
main.cpp:85:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v[dest].size();i++)
~^~~~~~~~~~~~~~~
main.cpp:36:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("teroristi.in","r",stdin);
^
main.cpp:37:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("teroristi.out","w",stdout);
^
main.cpp:39:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&n,&m);
^
main.cpp:57:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c %c\n",&c1[i],&c2[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !