Borderou de evaluare (job #1310698)

Utilizator gabimoiseMoise Gabriel gabimoise Data 7 ianuarie 2015 08:26:10
Problema Pluricex Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:32:31: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld%ld",&n,&k,&d); ^ user.cpp:32:31: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:32:31: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:35:24: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&nr); ^ user.cpp:37:44: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] for (j=1;j<=nr;j++) {scanf("%ld",&t); s[i]^=1<<(t-1);} ^ user.cpp:30:37: 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:31:39: 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:32:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld%ld",&n,&k,&d); ^ user.cpp:35:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&nr); ^ user.cpp:37:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (j=1;j<=nr;j++) {scanf("%ld",&t); s[i]^=1<<(t-1);} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms428kbOK10
20ms436kbOK10
30ms436kbOK10
436ms428kbOK10
50ms432kbOK10
68ms436kbOK10
70ms436kbOK10
828ms436kbOK10
94ms436kbOK10
100ms432kbOK10
Punctaj total100

Ceva nu functioneaza?