Borderou de evaluare (job #2024067)

Utilizator StefanManolacheManolache Stefan StefanManolache Data 19 septembrie 2017 21:34:06
Problema Padure Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:38:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin, "%d", &mat[i][j]); ^ user.cpp:31:60: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d%d%d%d%d", &n, &m, &pl, &pc, &cl, &cc); ^ user.cpp:38:42: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &mat[i][j]); ^ user.cpp:71:22: warning: ‘b’ may be used uninitialized in this function [-Wmaybe-uninitialized] int dmin = dist[b]; ^ user.cpp:22:15: warning: ‘a’ may be used uninitialized in this function [-Wmaybe-uninitialized] viz[t] = 1; ^ user.cpp:30:42: note: ‘a’ was declared here int n, m, pl, pc, cl, cc, nrnod = 0, a, b; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms348kbOK10
20ms400kbIncorect0
30ms588kbKilled by signal 11(SIGSEGV).0
40ms540kbKilled by signal 11(SIGSEGV).0
50ms528kbKilled by signal 11(SIGSEGV).0
60ms948kbKilled by signal 11(SIGSEGV).0
70ms1228kbKilled by signal 11(SIGSEGV).0
80ms1868kbKilled by signal 11(SIGSEGV).0
94ms2268kbKilled by signal 11(SIGSEGV).0
100ms2252kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?