Borderou de evaluare (job #1154281)

Utilizator iarbaCrestez Paul iarba Data 26 martie 2014 08:35:26
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:29:16: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:30:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] for(i=1;i<=n;i++){scanf("%ld",&a[i]);} ^ user.cpp:31:16: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&m); ^ user.cpp:33:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&caz,&val); ^ user.cpp:33:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:34:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] if(caz==0){printf("%ld\n",search0(1,n));} ^ user.cpp:35:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] if(caz==1){printf("%ld\n",search1(1,n));} ^ user.cpp:36:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] if(caz==2){printf("%ld\n",search2(1,n));} ^ user.cpp: In function ‘int search0(int, int)’: user.cpp:10:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int search1(int, int)’: user.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int search2(int, int)’: user.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms232kbOK1010
20ms236kbOK1010
34ms236kbOK1010
44ms232kbOK1010
532ms264kbOK1020
688ms428kbOK10
7128ms616kbOK1040
8132ms612kbOK10
9136ms616kbOK10
10136ms620kbOK10
Punctaj total100

Ceva nu functioneaza?