Borderou de evaluare (job #1853198)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 21 ianuarie 2017 15:04:07
Problema Albinuta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:34:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&n,&q); ^ user.cpp:34:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:38:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&k); ^ user.cpp:42:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&x); ^ user.cpp:68:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=1;i<rez.size();i++) ^ user.cpp:80:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&x); ^ user.cpp:33:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("albinuta.in","r",stdin); ^ user.cpp:34:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&n,&q); ^ user.cpp:38:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&k); ^ user.cpp:42:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&x); ^ user.cpp:80:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&x); ^ user.cpp:87:19: warning: ‘sav’ may be used uninitialized in this function [-Wmaybe-uninitialized] x-=sav; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbOK5
20ms440kbOK5
30ms448kbOK5
40ms452kbOK5
50ms472kbOK5
60ms476kbOK5
70ms508kbOK5
80ms556kbOK5
90ms568kbOK10
100ms568kbOK10
114ms1008kbOK10
124ms1040kbOK10
130ms784kbOK10
144ms1024kbOK10
Punctaj total100

Ceva nu functioneaza?