Borderou de evaluare (job #2447425)

Utilizator claudiu.gatinaFMI Claudiu Gatina claudiu.gatina Data 13 august 2019 12:44:41
Problema Telefon Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

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
12ms131kbRaspuns corect10
22ms131kbRaspuns corect10
32ms131kbRaspuns corect10
42ms131kbRaspuns corect10
52ms131kbRaspuns corect10
62ms131kbRaspuns corect10
72ms131kbRaspuns corect10
82ms131kbRaspuns corect10
92ms131kbRaspuns corect10
102ms131kbRaspuns corect10
Punctaj total100

Ceva nu functioneaza?