Borderou de evaluare (job #1339130)

Utilizator andrei_toaderToader Andrei Sorin andrei_toader Data 10 februarie 2015 18:12:45
Problema Pusculita Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=] scanf("%d %d", &S, &N); ^ user.cpp:14:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d %d", &GR[i], &V[i]); ^ user.cpp:14:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=] user.cpp:10:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pusculita.in", "r",stdin); ^ user.cpp:11:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pusculita.out","w",stdout); ^ user.cpp:12:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &S, &N); ^ user.cpp:14:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &GR[i], &V[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms240kbOK10
20ms236kbOK10
30ms240kbOK10
40ms240kbOK10
50ms212kbKilled by signal 11(SIGSEGV).0
60ms216kbKilled by signal 11(SIGSEGV).0
70ms216kbKilled by signal 11(SIGSEGV).0
80ms240kbKilled by signal 11(SIGSEGV).0
90ms216kbKilled by signal 11(SIGSEGV).0
100ms216kbKilled by signal 11(SIGSEGV).0
Punctaj total40

Ceva nu functioneaza?