Pagini recente » Borderou de evaluare (job #350364) | Borderou de evaluare (job #893095) | Borderou de evaluare (job #1895264) | Borderou de evaluare (job #1880155) | Borderou de evaluare (job #2393795)
Borderou de evaluare (job #2393795)
Raport evaluator
Compilare:
main.cpp: In function 'void h_scad(int*, int*, int*)':
main.cpp:24:24: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument]
memset(c,0,sizeof(c));
^
main.cpp:21:39: note: declared here
void h_scad(int a[],int b[],int c[NMAX])
^
main.cpp:24:22: 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:68:9: warning: unused variable 'n' [-Wunused-variable]
int n,i,cnt=0;
^
main.cpp:68:11: warning: unused variable 'i' [-Wunused-variable]
int n,i,cnt=0;
^
main.cpp:68:13: warning: unused variable 'cnt' [-Wunused-variable]
int n,i,cnt=0;
^~~
main.cpp:65:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("next.in","r",stdin);
^
main.cpp:66:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("next.out","w",stdout);
^
main.cpp:76:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&k);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 7ms | 131kb | Incorect | 0 |
5 | 17ms | 262kb | OK | 10 |
6 | 49ms | 655kb | OK | 10 |
7 | 104ms | 1441kb | Incorect | 0 |
8 | 246ms | 3407kb | Incorect | 0 |
9 | 337ms | 4587kb | Incorect | 0 |
10 | 367ms | 5111kb | Incorect | 0 |
Punctaj total | 30 |