Pagini recente » Borderou de evaluare (job #730958) | Borderou de evaluare (job #2548564) | Borderou de evaluare (job #976572) | Borderou de evaluare (job #2081941) | Borderou de evaluare (job #2384383)
Borderou de evaluare (job #2384383)
Raport evaluator
Compilare:
main.cpp: In function 'void prod(int*, int, int*)':
main.cpp:9:26: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument]
memset(c, 0, sizeof(c));
^
main.cpp:6:49: note: declared here
void prod(int a[NMAX + 5], int k, int c[NMAX + 5])
^
main.cpp:9:24: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(c, 0, sizeof(c));
^
main.cpp: In function 'void divide(int*, int*, int)':
main.cpp:27:26: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument]
memset(c, 0, sizeof(c));
^
main.cpp:24:44: note: declared here
void divide(int a[NMAX + 5], int c[NMAX + 5], int k)
^
main.cpp:27:24: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(c, 0, sizeof(c));
^
main.cpp: In function 'int main()':
main.cpp:41:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("expozitie.in", "r", stdin);
^
main.cpp:42:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("expozitie.out", "w", stdout);
^
main.cpp:44:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &d, &k);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 10ms | 131kb | OK | 10 |
2 | 3ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 8ms | 131kb | OK | 10 |
5 | 2ms | 131kb | OK | 10 |
6 | 9ms | 131kb | OK | 10 |
7 | 2ms | 131kb | OK | 10 |
8 | 3ms | 131kb | OK | 10 |
9 | 2ms | 131kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 100 |