Borderou de evaluare (job #1371884)

Utilizator gabimoiseMoise Gabriel gabimoise Data 4 martie 2015 09:56:12
Problema Unuzero Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:13:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&p,&q); ^ user.cpp:13:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:23:28: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n",v[n+2]-1); ^ user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("unuzero.in","r",stdin); ^ user.cpp:11:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("unuzero.out","w",stdout); ^ user.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ user.cpp:13:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&p,&q); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms432kbIncorect0
20ms432kbIncorect0
30ms440kbIncorect0
40ms444kbIncorect0
50ms440kbIncorect0
60ms444kbIncorect0
70ms1372kbIncorect0
820ms6564kbIncorect0
90ms392kbKilled by signal 11(SIGSEGV).0
1024ms8532kbIncorect0
Punctaj total0

Ceva nu functioneaza?