Pagini recente » Borderou de evaluare (job #1635484) | Borderou de evaluare (job #933390) | Borderou de evaluare (job #2426638) | Borderou de evaluare (job #2577083) | Borderou de evaluare (job #2249171)
Borderou de evaluare (job #2249171)
Raport evaluator
Compilare:
user.c:16:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
printA(T*k){
^~~~~~
user.c:24:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
readInput(){
^~~~~~~~~
user.c:32:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
calculateLeftRight(){
^~~~~~~~~~~~~~~~~~
user.c:88:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
sort(){
^~~~
user.c: In function ‘sort’:
user.c:94:35: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
qsort((void*)ord,n,sizeof(*ord),cmp);
^~~
In file included from user.c:3:0:
/usr/include/stdlib.h:764:13: note: expected ‘__compar_fn_t {aka int (*)(const void *, const void *)}’ but argument is of type ‘T (*)(const void *, const void *) {aka long long int (*)(const void *, const void *)}’
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^~~~~
user.c: At top level:
user.c:97:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
solveTest(){
^~~~~~~~~
user.c:122:5: warning: return type of ‘main’ is not ‘int’ [-Wmain]
int main(){
^~~~
user.c: In function ‘printA’:
user.c:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.c: In function ‘readInput’:
user.c:23:18: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
#define scan(x) (scanf("%lld",x))
~^~~~~~~~~~~~~~~~
user.c:25:3: note: in expansion of macro ‘scan’
scan(&n);
^~~~
user.c:23:18: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
#define scan(x) (scanf("%lld",x))
~^~~~~~~~~~~~~~~~
user.c:28:5: note: in expansion of macro ‘scan’
scan(&s[i]);
^~~~
user.c:30:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.c: In function ‘calculateLeftRight’:
user.c:82:1: warning: control reaches end of non-void function [-Wreturn-type]
}
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1092ms | 8220kb | Incorect | 0 |
Punctaj total | 0 |