Borderou de evaluare (job #1377206)

Utilizator PetreCatalinFMI Petre Catalin PetreCatalin Data 5 martie 2015 20:44:42
Problema Amici2 Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul I, Semestrul 2 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
10ms628kbCorect!10
24ms660kbCorect!10
34ms644kbCorect!10
420ms808kbCorect!10
568ms1196kbCorect!10
680ms1372kbCorect!10
780ms1308kbCorect!10
8100ms1504kbCorect!10
996ms1456kbCorect!10
10120ms1664kbCorect!10
Punctaj total100

Ceva nu functioneaza?