Pagini recente » Cod sursa (job #3165778) | Cod sursa (job #486880) | Cod sursa (job #1044563) | Cod sursa (job #362840) | Borderou de evaluare (job #1154281)
Borderou de evaluare (job #1154281)
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 |
| 1 | 0ms | 232kb | OK | 10 | 10 |
| 2 | 0ms | 236kb | OK | 10 | 10 |
| 3 | 4ms | 236kb | OK | 10 | 10 |
| 4 | 4ms | 232kb | OK | 10 | 10 |
| 5 | 32ms | 264kb | OK | 10 | 20 |
| 6 | 88ms | 428kb | OK | 10 |
| 7 | 128ms | 616kb | OK | 10 | 40 |
| 8 | 132ms | 612kb | OK | 10 |
| 9 | 136ms | 616kb | OK | 10 |
| 10 | 136ms | 620kb | OK | 10 |
| Punctaj total | 100 |