Borderou de evaluare (job #1212967)

Utilizator ovidiuz98Zamfir Ovidiu ovidiuz98 Data 26 iulie 2014 18:42:29
Problema Livada Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 76

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8: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:8:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:8:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:13: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:27: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:27:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:6: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:7: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:8: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:13: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
18ms1236kbOK!10
28ms1236kbOK!10
372ms1240kbOK!10
488ms1240kbA doua linie corecta!6
5156ms1248kbA doua linie corecta!6
6244ms1272kbA doua linie corecta!6
7232ms1268kbA doua linie corecta!6
8228ms1912kbA doua linie corecta!6
9260ms1256kbA doua linie corecta!6
10224ms3960kbOK!10
Punctaj total76

Ceva nu functioneaza?