Borderou de evaluare (job #2402730)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 10 aprilie 2019 23:09:05
Problema Marfa2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In constructor 'Matrix::Matrix(int, int (*)[21])': main.cpp:27:26: warning: 'sizeof' on array function parameter 'b' will return size of 'int (*)[21]' [-Wsizeof-array-argument] memcpy(a, b, sizeof(b)); ^ main.cpp:25:55: note: declared here Matrix(int m, int b[MAXK * MAXK + 5][MAXK * MAXK + 5]) { ^ main.cpp:27:24: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memcpy(a, b, sizeof(b)); ^ main.cpp: In function 'int main()': main.cpp:62:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("marfa2.in", "r", stdin); ^ main.cpp:63:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("marfa2.out", "w", stdout); ^ main.cpp:66:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &z, &k, &n); ^ main.cpp:68:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
23ms131kbOK10
33ms262kbOK10
44ms131kbOK10
53ms131kbOK10
64ms131kbOK10
73ms131kbOK10
85ms262kbOK10
95ms131kbOK10
103ms262kbOK10
Punctaj total100

Ceva nu functioneaza?