Borderou de evaluare (job #1433897)

Utilizator PetreCatalinFMI Petre Catalin PetreCatalin Data 10 mai 2015 09:24:04
Problema Ratphu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=] scanf("%s",&s); ^ user.cpp:19:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&p); ^ user.cpp:12:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratphu.in","r",stdin); ^ user.cpp:13:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratphu.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("%s",&s); ^ user.cpp:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
20ms268kbOK10
30ms304kbOK10
40ms424kbOK10
516ms896kbOK10
6104ms2820kbOK10
7256ms5376kbOK10
8552ms10500kbOK10
9Depăşit20724kbTime limit exceeded.0
10Depăşit20720kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?