Borderou de evaluare (job #1305128)

Utilizator pas.andreiPopovici Andrei-Sorin pas.andrei Data 29 decembrie 2014 15:57:36
Problema Sarac Sau Rege Status done
Runda Happy Birthday Infoarena 2014 Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=] fscanf(fin, "%d", &v[i]); ^ user.cpp:7:27: warning: unused variable ‘Max’ [-Wunused-variable] int N, M, i, j, inc, sf, Max; ^ user.cpp:10:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d", &N, &M); ^ user.cpp:14:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &v[i]); ^ user.cpp:28:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d", &inc, &sf); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
24msDepăşitMemory limit exceeded.0
30ms224kbKilled by signal 11(SIGSEGV).0
44msDepăşitMemory limit exceeded.0
50ms228kbKilled by signal 11(SIGSEGV).0
60ms228kbKilled by signal 11(SIGSEGV).0
70ms228kbKilled by signal 11(SIGSEGV).0
80ms228kbKilled by signal 11(SIGSEGV).0
90ms228kbKilled by signal 11(SIGSEGV).0
100ms224kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?