Borderou de evaluare (job #2249171)

Utilizator UAIC_Buruiana_Oprea_OuatuUAIC BOO UAIC_Buruiana_Oprea_Ouatu Data 29 septembrie 2018 14:41:56
Problema Guest Status done
Runda Nationala ACM ICPC 2018 Compilator c | Vezi sursa
Scor 0

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
11092ms8220kbIncorect0
Punctaj total0

Ceva nu functioneaza?