Borderou de evaluare (job #1277364)

Utilizator patrutoiuandreipatrutoiu andrei patrutoiuandrei Data 27 noiembrie 2014 16:31:40
Problema Pluricex Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void tipar(int)’: user.cpp:12:27: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld ",x[i]); ^ user.cpp: In function ‘int main()’: user.cpp:50:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld%ld ", &n,&m,&d); ^ user.cpp:50:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:50:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:55:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&viz[i][0]); ^ user.cpp:59:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&y); ^ user.cpp:48:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pluricex.in", "r", stdin); ^ user.cpp:49:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pluricex.out", "w", stdout); ^ user.cpp:50:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld%ld ", &n,&m,&d); ^ user.cpp:55:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&viz[i][0]); ^ user.cpp:59:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbOK10
20ms252kbOK10
30ms256kbOK10
444ms260kbOK10
50ms252kbOK10
612ms256kbOK10
70ms252kbOK10
836ms256kbOK10
912ms256kbOK10
100ms260kbOK10
Punctaj total100

Ceva nu functioneaza?