Borderou de evaluare (job #2708553)

Utilizator YusyBossFares Yusuf YusyBoss Data 18 februarie 2021 21:20:39
Problema Elicop Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:20:35: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'char*' [-Wformat=] fscanf(fin, "%d", &mat[i][j]); ^ main.cpp:13:46: warning: unused variable 'cop' [-Wunused-variable] int n, m, k, i, lin1, col1, lin2, col2, p, cop, cnt, nrpat, sol1, j, sol2, aux; ^~~ main.cpp:16:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d", &n, &m); ^ main.cpp:20:36: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &mat[i][j]); ^ main.cpp:26:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &k); ^ main.cpp:28:62: 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", &lin1, &col1, &lin2, &col2, &p); ^ main.cpp:62:15: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] if (nrpat - cnt > nrpat / 2) ~~~~~~^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbLike a boss !10
23ms131kbLike a boss !10
33ms131kbLike a boss !10
43ms131kbLike a boss !10
53ms131kbLike a boss !10
63ms131kbLike a boss !10
74ms131kbLike a boss !10
84ms131kbLike a boss !10
95ms131kbLike a boss !10
105ms131kbLike a boss !10
Punctaj total100

Ceva nu functioneaza?