Borderou de evaluare (job #1273753)

Utilizator dragangabrielDragan Andrei Gabriel dragangabriel Data 22 noiembrie 2014 22:15:05
Problema Tamplar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:34:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",H[H[0]]); ^ user.cpp:37:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if (H[i]>=1000) printf("%d",H[i]);else ^ user.cpp:38:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if (H[i]>=100) printf("0%d",H[i]);else ^ user.cpp:39:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if (H[i]>=10) printf("00%d",H[i]);else ^ user.cpp:40:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("000%d",H[i]); ^ user.cpp:24:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tamplar.in","r",stdin); ^ user.cpp:25:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tamplar.out","w",stdout); ^ user.cpp:26:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK10
20ms260kbOK10
30ms260kbOK10
40ms260kbOK10
50ms264kbOK10
60ms264kbOK10
70ms264kbOK10
8136ms292kbOK10
9Depăşit288kbTime limit exceeded.0
10Depăşit288kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?