Borderou de evaluare (job #1212888)

Utilizator ovidiuz98Zamfir Ovidiu ovidiuz98 Data 26 iulie 2014 13:31:12
Problema Livada Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:7:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d",&n,&m,&p); ^ user.cpp:7:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:7:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:12:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&a[j]);v[a[j]%250001]++; ^ user.cpp:24:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n%d",nr_rand,maxim); ^ user.cpp:24:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:5:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("livada.in","r",stdin); ^ user.cpp:6:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("livada.out","w",stdout); ^ user.cpp:7:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&n,&m,&p); ^ user.cpp:12:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[j]);v[a[j]%250001]++; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
116ms1224kbOK!10
216ms1224kbOK!10
380ms608kbOK!10
4184ms1004kbOK!10
5256ms1012kbOK!10
6Depăşit1008kbTime limit exceeded.0
7Depăşit1036kbTime limit exceeded.0
8232ms1676kbOK!10
9Depăşit1224kbTime limit exceeded.0
10228ms3728kbOK!10
Punctaj total70

Ceva nu functioneaza?