Pagini recente » Borderou de evaluare (job #493528) | Borderou de evaluare (job #337643) | Borderou de evaluare (job #2065459) | Borderou de evaluare (job #967805) | Borderou de evaluare (job #1221674)
Borderou de evaluare (job #1221674)
Raport evaluator
Compilare:
user.cpp: In function ‘void back(int, int)’:
user.cpp:19:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{ s[k]=s[k-1]+p[n-k+1][e[pl].v];
^
user.cpp:22:14: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[e[pl].lin][e[pl].col]=0;
^
user.cpp:22:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[e[pl].lin][e[pl].col]=0;
^
user.cpp:26:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{ l=e[vec[pl][r]].lin;
^
user.cpp:27:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
c=e[vec[pl][r]].col;
^
user.cpp:34:14: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[e[pl].lin][e[pl].col]=x[k];
^
user.cpp:34:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[e[pl].lin][e[pl].col]=x[k];
^
user.cpp: In function ‘int main()’:
user.cpp:43:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
{ scanf("%d",&v[i][j]);
^
user.cpp:47:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(t=1;t<=n;t++) poz[e[t].lin][e[t].col]=t;
^
user.cpp:47:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(t=1;t<=n;t++) poz[e[t].lin][e[t].col]=t;
^
user.cpp:56:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(e[vec[t][i]].v>e[vec[t][i+1]].v) {swap(vec[t][i],vec[t][i+1]); w=1;}
^
user.cpp:56:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(e[vec[t][i]].v>e[vec[t][i+1]].v) {swap(vec[t][i],vec[t][i+1]); w=1;}
^
user.cpp:62:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld\n",smin);
^
user.cpp:40:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma3.in","r",stdin); freopen("suma3.out","w",stdout);
^
user.cpp:40:67: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma3.in","r",stdin); freopen("suma3.out","w",stdout);
^
user.cpp:41:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&a,&b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 292kb | OK | 10 |
2 | 20ms | 388kb | OK | 10 |
3 | 0ms | 300kb | OK | 10 |
4 | 0ms | 316kb | OK | 10 |
5 | 0ms | 324kb | OK | 10 |
6 | 0ms | 336kb | OK | 10 |
7 | 4ms | 336kb | OK | 10 |
8 | 16ms | 348kb | OK | 10 |
9 | Depăşit | 336kb | Time limit exceeded. | 0 |
10 | 8ms | 392kb | OK | 10 |
Punctaj total | 90 |