Pagini recente » Borderou de evaluare (job #3143734) | Borderou de evaluare (job #1968820) | Borderou de evaluare (job #2427465) | Borderou de evaluare (job #594273) | Borderou de evaluare (job #2402730)
Borderou de evaluare (job #2402730)
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 |
1 | 2ms | 131kb | OK | 10 |
2 | 3ms | 131kb | OK | 10 |
3 | 3ms | 262kb | OK | 10 |
4 | 4ms | 131kb | OK | 10 |
5 | 3ms | 131kb | OK | 10 |
6 | 4ms | 131kb | OK | 10 |
7 | 3ms | 131kb | OK | 10 |
8 | 5ms | 262kb | OK | 10 |
9 | 5ms | 131kb | OK | 10 |
10 | 3ms | 262kb | OK | 10 |
Punctaj total | 100 |