Borderou de evaluare (job #2257523)

Utilizator PredaBossPreda Andrei PredaBoss Data 10 octombrie 2018 09:50:16
Problema Graf Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d %d %d",&n,&m,&x,&y); ^ user.cpp:12:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:12:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:12:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:15:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d",&p1,&p2); ^ user.cpp:15:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:41:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<nod[pos].size();i++) ~^~~~~~~~~~~~~~~~ user.cpp:50:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<j.size();i++) ~^~~~~~~~~ user.cpp:58:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<r.size();i++) ~^~~~~~~~~ user.cpp:10:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("graf.in","r",stdin); ^ user.cpp:11:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("graf.out","w",stdout); ^ user.cpp:12:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d",&n,&m,&x,&y); ^ user.cpp:15:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&p1,&p2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1412kbIncorect0
20ms1408kbIncorect0
30ms1412kbIncorect0
40ms1412kbIncorect0
50ms1412kbIncorect0
60ms1408kbIncorect0
70ms1412kbIncorect0
80ms1412kbIncorect0
90ms1412kbIncorect0
100ms1412kbIncorect0
Punctaj total0

Ceva nu functioneaza?