Borderou de evaluare (job #1377175)

Utilizator PetreCatalinFMI Petre Catalin PetreCatalin Data 5 martie 2015 20:36:57
Problema Amici2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&t); ^ user.cpp:17:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d",&n,&m); ^ user.cpp:17:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:19:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d",&x,&y); ^ user.cpp:19:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:32:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0;j<v[x].size();++j) ^ user.cpp:54:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0;j<v[x].size();++j) ^ user.cpp:67:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n",nr); ^ user.cpp:13:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("amici2.in","r",stdin); ^ user.cpp:14:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("amici2.out","w",stdout); ^ user.cpp:15:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:17:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ user.cpp:19:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms632kbCorect!10
24ms656kbCorect!10
34ms648kbCorect!10
420ms808kbCorect!10
568ms1188kbCorect!10
680ms1376kbCorect!10
776ms1316kbCorect!10
896ms1504kbCorect!10
992ms1456kbCorect!10
10120ms1668kbCorect!10
Punctaj total100

Ceva nu functioneaza?