Borderou de evaluare (job #1608356)

Utilizator thewildnathNathan Wildenberg thewildnath Data 22 februarie 2016 00:14:34
Problema Minerale Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool sePoate(char, int, int)’: user.cpp:19:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!calculat[subst][st][dr]) { ^ user.cpp:20:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] calculat[subst][st][dr] = true; ^ user.cpp:23:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] posibil[subst][st][dr] = trans[subst][sir[st]]; ^ user.cpp:23:43: warning: array subscript has type ‘char’ [-Wchar-subscripts] posibil[subst][st][dr] = trans[subst][sir[st]]; ^ user.cpp:23:52: warning: array subscript has type ‘char’ [-Wchar-subscripts] posibil[subst][st][dr] = trans[subst][sir[st]]; ^ user.cpp:25:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (int i = 0; i < sparg[subst].size(); ++i) ^ user.cpp:25:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < sparg[subst].size(); ++i) ^ user.cpp:27:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (sePoate(sparg[subst][i].first, st, poz) && ^ user.cpp:28:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] sePoate(sparg[subst][i].second, poz + 1, dr)) ^ user.cpp:29:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] return posibil[subst][st][dr] = true; ^ user.cpp:31:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] posibil[subst][st][dr] = false; ^ user.cpp:35:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] return posibil[subst][st][dr]; ^ user.cpp: In function ‘int main()’: user.cpp:53:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] sparg[inst].push_back(make_pair(c1, c2)); ^ user.cpp:56:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] trans[inst][c1] = true; ^ user.cpp:56:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] trans[inst][c1] = true; ^ user.cpp:39:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("minerale.in", "r", stdin); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms784kbOK10
20ms784kbOK10
30ms784kbOK10
444ms784kbOK10
516ms780kbOK10
624ms788kbOK10
716ms784kbOK10
860ms792kbOK10
9116ms784kbOK10
10124ms788kbOK10
Punctaj total100

Ceva nu functioneaza?