Borderou de evaluare (job #1608371)

Utilizator thewildnathNathan Wildenberg thewildnath Data 22 februarie 2016 00:29:03
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:23:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] return posibil[subst][st][dr]; ^ user.cpp: In function ‘int main()’: user.cpp:41:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] sparg[inst].push_back(make_pair(c1, c2)); ^ user.cpp:44:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] trans[inst][c1] = true; ^ user.cpp:44:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] trans[inst][c1] = true; ^ user.cpp:64:58: warning: array subscript has type ‘char’ [-Wchar-subscripts] posibil[st][dr][subst] = trans[subst][sir[st]]; ^ user.cpp:68:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < sparg[subst].size() && !flag; ++i) { ^ user.cpp:70:59: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (posibil[st][poz][sparg[subst][i].first] && ^ user.cpp:71:64: warning: array subscript has type ‘char’ [-Wchar-subscripts] posibil[poz + 1][dr][sparg[subst][i].second]) { ^ user.cpp:27: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:28: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:31:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &r, &n); ^ user.cpp:35:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n%c %c", &inst, &c1); ^ user.cpp:38:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &c2); ^ user.cpp:52:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n%s", sir); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms784kbOK10
20ms784kbOK10
34ms784kbOK10
416ms780kbOK10
512ms780kbOK10
664ms784kbOK10
748ms788kbOK10
8308ms780kbOK10
9572ms788kbOK10
10720ms784kbOK10
Punctaj total100

Ceva nu functioneaza?