Borderou de evaluare (job #1347865)
Utilizator | Data | 19 februarie 2015 12:17:07 | |
---|---|---|---|
Problema | Car | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void bfs(std::vector<std::vector<_Tp> >&, int, int)’:
user.cpp:70:60: warning: array subscript has type ‘char’ [-Wchar-subscripts]
oras[newx][newy] = oras[x][y] + cost[directie[x][y]][directie[newx][newy]];//
^
user.cpp:70:82: warning: array subscript has type ‘char’ [-Wchar-subscripts]
oras[newx][newy] = oras[x][y] + cost[directie[x][y]][directie[newx][newy]];//
^
user.cpp:76:63: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (oras[newx][newy] > oras[x][y] + cost[directie[x][y]][directii[i]])//
^
user.cpp:79:60: warning: array subscript has type ‘char’ [-Wchar-subscripts]
oras[newx][newy] = oras[x][y] + cost[directie[x][y]][directie[newx][newy]];//
^
user.cpp:79:82: warning: array subscript has type ‘char’ [-Wchar-subscripts]
oras[newx][newy] = oras[x][y] + cost[directie[x][y]][directie[newx][newy]];//
^
user.cpp: At global scope:
user.cpp:103:22: error: ‘_TCHAR’ has not been declared
int _tmain(int argc, _TCHAR* argv[])
^
user.cpp: In instantiation of ‘void bfs(std::vector<std::vector<_Tp> >&, int, int) [with T = short int]’:
user.cpp:128:26: required from here
user.cpp:70:39: warning: array subscript has type ‘char’ [-Wchar-subscripts]
oras[newx][newy] = oras[x][y] + cost[directie[x][y]][directie[newx][newy]];//
^
user.cpp:70:39: warning: array subscript has type ‘char’ [-Wchar-subscripts]
user.cpp:76:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (oras[newx][newy] > oras[x][y] + cost[directie[x][y]][directii[i]])//
^
user.cpp:79:39: warning: array subscript has type ‘char’ [-Wchar-subscripts]
oras[newx][newy] = oras[x][y] + cost[directie[x][y]][directie[newx][newy]];//
^
user.cpp:79:39: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !