Borderou de evaluare (job #1601130)

Utilizator thewildnathNathan Wildenberg thewildnath Data 15 februarie 2016 19:15:21
Problema Minerale Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

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:21:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] return trans[subst][sir[st]]; ^ user.cpp:21:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] return trans[subst][sir[st]]; ^ user.cpp:23:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (int i = 0; i < sparg[subst].size(); ++i) ^ user.cpp:23:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < sparg[subst].size(); ++i) ^ user.cpp:25:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (sePoate(sparg[subst][i].first, st, poz) && ^ user.cpp:26:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] sePoate(sparg[subst][i].second, poz + 1, dr)) ^ user.cpp:27:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] return posibil[subst][st][dr] = true; ^ user.cpp:29:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] posibil[subst][st][dr] = false; ^ user.cpp:33:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] return posibil[subst][st][dr]; ^ user.cpp: In function ‘int main()’: user.cpp:51:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] sparg[inst].push_back(make_pair(c1, c2)); ^ user.cpp:54:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] trans[inst][c1] = true; ^ user.cpp:54:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] trans[inst][c1] = true; ^ user.cpp:37: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); ^ user.cpp:38:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("minerale.out", "w", stdout); ^ user.cpp:41:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &r, &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms788kbOK10
20ms784kbOK10
3Depăşit780kbTime limit exceeded.0
4Depăşit784kbTime limit exceeded.0
5Depăşit760kbTime limit exceeded.0
6Depăşit788kbTime limit exceeded.0
7Depăşit764kbTime limit exceeded.0
8Depăşit788kbTime limit exceeded.0
9Depăşit780kbTime limit exceeded.0
10Depăşit784kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?