Pagini recente » Borderou de evaluare (job #2064156) | Borderou de evaluare (job #1918273) | Borderou de evaluare (job #285792) | Borderou de evaluare (job #2955458) | Borderou de evaluare (job #1177448)
Borderou de evaluare (job #1177448)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:30:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld",&t);
^
user.cpp:34:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10005]’ [-Wformat=]
scanf("%s",&s);
^
user.cpp:37:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
num[c]=0;
^
user.cpp:39:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
num[s[i]]++;
^
user.cpp:40:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld",&L);
^
user.cpp:44:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[c][0]=1;
^
user.cpp:47:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[c][lg]=0;
^
user.cpp:48:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (y=0;((y<=num[c])&&(y<=lg));y++)
^
user.cpp:49:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[c][lg]=(nr[c][lg] + nr[c-1][lg-y]*comb[lg][y])%modulo;
^
user.cpp:49:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[c][lg]=(nr[c][lg] + nr[c-1][lg-y]*comb[lg][y])%modulo;
^
user.cpp:52:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld\n",nr['z'][L]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 160ms | 4280kb | Incorect | 0 |
Punctaj total | 0 |