Pagini recente »
Borderou de evaluare (job #648263)
|
Borderou de evaluare (job #313102)
|
Borderou de evaluare (job #298248)
|
Borderou de evaluare (job #675848)
|
Borderou de evaluare (job #726430)
Borderou de evaluare (job #726430)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:28:24: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:30: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:43: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:49: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:66: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:72: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:85: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:91: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:107: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:113: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:124: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:28:130: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | c=( abs( x[h1]-x[h2] )+abs( y[h1]-y[h2] ) )+( abs( x[h2]-x[m1] )+abs( y[h2]-y[m1] ) )+( abs(x[m1]-x[m2])+abs(y[m1]-y[m2]));
| ^~
main.cpp:49:27: warning: 'nh2' may be used uninitialized [-Wmaybe-uninitialized]
49 | fout<<min<<'\n'<<nh1<<nh2<<nm1<<nm2;
| ^~~
main.cpp:11:34: note: 'nh2' was declared here
11 | int c=0,min=5000,nm1,nm2,nh1,nh2,cm1;
| ^~~
main.cpp:49:22: warning: 'nh1' may be used uninitialized [-Wmaybe-uninitialized]
49 | fout<<min<<'\n'<<nh1<<nh2<<nm1<<nm2;
| ^~~
main.cpp:11:30: note: 'nh1' was declared here
11 | int c=0,min=5000,nm1,nm2,nh1,nh2,cm1;
| ^~~
main.cpp:49:37: warning: 'nm2' may be used uninitialized [-Wmaybe-uninitialized]
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 kb
|
OK
|
10
|
2
|
1 ms
|
245 kb
|
OK
|
10
|
3
|
1 ms
|
245 kb
|
OK
|
10
|
4
|
1 ms
|
245 kb
|
OK
|
10
|
5
|
1 ms
|
245 kb
|
OK
|
10
|
6
|
1 ms
|
245 kb
|
OK
|
10
|
7
|
1 ms
|
245 kb
|
OK
|
10
|
8
|
1 ms
|
245 kb
|
OK
|
10
|
9
|
1 ms
|
245 kb
|
OK
|
10
|
10
|
1 ms
|
245 kb
|
OK
|
10
|
Punctaj total
|
100
|