Pagini recente » Borderou de evaluare (job #163173) | Borderou de evaluare (job #244632) | Borderou de evaluare (job #3179282) | Borderou de evaluare (job #2307646) | Borderou de evaluare (job #2447425)
Borderou de evaluare (job #2447425)
Raport evaluator
Compilare:
main.cpp: In function 'void moveTo(char)':
main.cpp:31:10: warning: array subscript has type 'char' [-Wchar-subscripts]
if (x[c] != posx)
^
main.cpp:33:12: warning: array subscript has type 'char' [-Wchar-subscripts]
if (x[c] < posx)
^
main.cpp:34:33: warning: array subscript has type 'char' [-Wchar-subscripts]
cout << "S " << posx - x[c];
^
main.cpp:36:26: warning: array subscript has type 'char' [-Wchar-subscripts]
cout << "J " << x[c] - posx;
^
main.cpp:37:15: warning: array subscript has type 'char' [-Wchar-subscripts]
posx = x[c];
^
main.cpp:41:10: warning: array subscript has type 'char' [-Wchar-subscripts]
if (y[c] != posy)
^
main.cpp:43:12: warning: array subscript has type 'char' [-Wchar-subscripts]
if (y[c] < posy)
^
main.cpp:44:34: warning: array subscript has type 'char' [-Wchar-subscripts]
cout << "ST " << posy - y[c];
^
main.cpp:46:27: warning: array subscript has type 'char' [-Wchar-subscripts]
cout << "DR " << y[c] - posy;
^
main.cpp:47:15: warning: array subscript has type 'char' [-Wchar-subscripts]
posy = y[c];
^
main.cpp: In function 'int main()':
main.cpp:63:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); ++i)
~~^~~~~~~~~~
main.cpp:54:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("telefon.in", "r", stdin);
^
main.cpp:55:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("telefon.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Raspuns corect | 10 |
2 | 2ms | 131kb | Raspuns corect | 10 |
3 | 2ms | 131kb | Raspuns corect | 10 |
4 | 2ms | 131kb | Raspuns corect | 10 |
5 | 2ms | 131kb | Raspuns corect | 10 |
6 | 2ms | 131kb | Raspuns corect | 10 |
7 | 2ms | 131kb | Raspuns corect | 10 |
8 | 2ms | 131kb | Raspuns corect | 10 |
9 | 2ms | 131kb | Raspuns corect | 10 |
10 | 2ms | 131kb | Raspuns corect | 10 |
Punctaj total | 100 |