Borderou de evaluare (job #3132992)

Utilizator someDadsome dad someDad Data 24 mai 2023 17:42:50
Problema Parcare Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'void print()': main.cpp:31:43: warning: array subscript has type 'char' [-Wchar-subscripts] 31 | for(j = 0; j <= 9; j++) cout << p[i][j]; | ^ main.cpp:31:46: warning: array subscript has type 'char' [-Wchar-subscripts] 31 | for(j = 0; j <= 9; j++) cout << p[i][j]; | ^ main.cpp: In function 'int tryMove(int)': main.cpp:100:20: warning: unused variable 'cnt' [-Wunused-variable] 100 | short int dist,cnt; | ^~~ main.cpp: In function 'int main()': main.cpp:179:15: warning: array subscript has type 'char' [-Wchar-subscripts] 179 | p[i][j] = c; | ^ main.cpp:179:18: warning: array subscript has type 'char' [-Wchar-subscripts] 179 | p[i][j] = c; | ^ main.cpp:185:23: warning: array subscript has type 'char' [-Wchar-subscripts] 185 | if((c = p[i][j]) >= 'A') { | ^ main.cpp:185:26: warning: array subscript has type 'char' [-Wchar-subscripts] 185 | if((c = p[i][j]) >= 'A') { | ^ main.cpp:191:31: warning: array subscript has type 'char' [-Wchar-subscripts] 191 | if(p[i+1][j] == carNo +'A' || p[i-1][j] == carNo + 'A') { | ^ main.cpp:191:58: warning: array subscript has type 'char' [-Wchar-subscripts] 191 | if(p[i+1][j] == carNo +'A' || p[i-1][j] == carNo + 'A') { | ^ main.cpp:195:54: warning: array subscript has type 'char' [-Wchar-subscripts] 195 | } while(p[i+cars[carNo].len][j] == carNo + 'A'); | ^ main.cpp:200:35: warning: array subscript has type 'char' [-Wchar-subscripts] 200 | } while(p[i][j+cars[carNo].len] == carNo + 'A'); | ^ main.cpp:171:13: warning: variable 'exit' set but not used [-Wunused-but-set-variable] 171 | char c, exit,i=0,j=0; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOk10
20ms303kbOk10
30ms303kbEroare de prezentare0
4178ms303kbTime limit exceeded0
50ms303kbEroare de prezentare0
6178ms303kbTime limit exceeded0
7178ms303kbTime limit exceeded0
8178ms303kbTime limit exceeded0
9178ms303kbTime limit exceeded0
10178ms303kbTime limit exceeded0
Punctaj total20

Ceva nu functioneaza?