Pagini recente » Borderou de evaluare (job #2102186) | Borderou de evaluare (job #1227997) | Borderou de evaluare (job #2480901) | Borderou de evaluare (job #801281) | Borderou de evaluare (job #2384341)
Borderou de evaluare (job #2384341)
Raport evaluator
Compilare:
main.cpp: In function 'void prod(int*, int, int*)':
main.cpp:10:26: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument]
memset(c, 0, sizeof(c));
^
main.cpp:7:49: note: declared here
void prod(int a[NMAX + 5], int k, int c[NMAX + 5])
^
main.cpp:10: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:28:26: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument]
memset(c, 0, sizeof(c));
^
main.cpp:25:44: note: declared here
void divide(int a[NMAX + 5], int c[NMAX + 5], int k)
^
main.cpp:28: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:43: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:44: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:46: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 | 18ms | 131kb | Incorect | 0 |
2 | 3ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 10ms | 131kb | Incorect | 0 |
5 | 2ms | 131kb | Incorect | 0 |
6 | 11ms | 131kb | Incorect | 0 |
7 | 2ms | 131kb | Incorect | 0 |
8 | 3ms | 131kb | Incorect | 0 |
9 | 2ms | 131kb | Incorect | 0 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 10 |