Borderou de evaluare (job #1427669)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 2 mai 2015 20:11:35
Problema Checkin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void Read()’: user.cpp:10:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &N); ^ user.cpp:13:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d", &A[i], &B[i]); ^ user.cpp:13:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:15:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d", &P, &K); ^ user.cpp:15:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp: In function ‘void Solve()’: user.cpp:29:23: warning: variable ‘ok’ set but not used [-Wunused-but-set-variable] long Sum = 0, ok = 0; ^ user.cpp:54:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d", st); ^ user.cpp:53:10: warning: unused variable ‘ok’ [-Wunused-variable] bool ok = 1; ^ user.cpp: In function ‘void Read()’: user.cpp:10:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:13:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &A[i], &B[i]); ^ user.cpp:15:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &P, &K); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbOK10
20ms276kbOK10
30ms272kbOK10
40ms280kbOK10
50ms272kbOK10
60ms280kbOK10
70ms276kbOK10
80ms272kbOK10
90ms276kbOK10
100ms280kbOK10
Punctaj total100

Ceva nu functioneaza?