Pagini recente » Borderou de evaluare (job #2482780) | Borderou de evaluare (job #3188379) | Borderou de evaluare (job #3002579) | Borderou de evaluare (job #2112016) | Borderou de evaluare (job #2399418)
Borderou de evaluare (job #2399418)
Raport evaluator
Compilare:
main.cpp: In function 'int adun(int*, int*, int*)':
main.cpp:12:10: warning: no return statement in function returning non-void [-Wreturn-type]
c[0]=i-1;}
^
main.cpp: In function 'int adun2(int*, int*)':
main.cpp:19:10: warning: no return statement in function returning non-void [-Wreturn-type]
a[0]=i-1;}
^
main.cpp: In function 'int multmic(int*, int*, int)':
main.cpp:26:10: warning: no return statement in function returning non-void [-Wreturn-type]
b[0]=i-1;}
^
main.cpp: In function 'int mult(int*, int*)':
main.cpp:37:20: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument]
memset(a,0,sizeof(a));
^
main.cpp:27:16: note: declared here
int mult(int a[],int b[]){
^
main.cpp:37:18: 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(a,0,sizeof(a));
^
main.cpp:40:14: warning: no return statement in function returning non-void [-Wreturn-type]
a[0]=auxi[0];}
^
main.cpp: In function 'int impart(int*, int)':
main.cpp:48:8: warning: no return statement in function returning non-void [-Wreturn-type]
a[0]--;}
^
main.cpp: In function 'int main()':
main.cpp:50:27: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ex.in","r",stdin);
^
main.cpp:51:29: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ex.out","w",stdout);
^
main.cpp:53:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&k,&p);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 262kb | OK | 10 |
2 | 2ms | 262kb | OK | 10 |
3 | 2ms | 393kb | OK | 10 |
4 | 3ms | 786kb | OK | 10 |
5 | 5ms | 1703kb | OK | 10 |
6 | 5ms | 1703kb | OK | 10 |
7 | 8ms | 2621kb | OK | 10 |
8 | 16ms | 5767kb | OK | 10 |
9 | 7ms | 2097kb | OK | 10 |
10 | 13ms | 4063kb | OK | 10 |
Punctaj total | 100 |