Borderou de evaluare (job #2382337)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 18 martie 2019 10:14:10
Problema Papuci Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'Str solve(int, int)': main.cpp:27:25: warning: array subscript has type 'char' [-Wchar-subscripts] ans = Str(cst[str[le]][str[ri]], -INF, -INF, -INF); } ^ main.cpp:27:34: warning: array subscript has type 'char' [-Wchar-subscripts] ans = Str(cst[str[le]][str[ri]], -INF, -INF, -INF); } ^ main.cpp:29:25: warning: array subscript has type 'char' [-Wchar-subscripts] ans = Str(cst[str[le]][str[ri]], -INF, -INF, cst[str[ri]][str[le]]); } } ^ main.cpp:29:34: warning: array subscript has type 'char' [-Wchar-subscripts] ans = Str(cst[str[le]][str[ri]], -INF, -INF, cst[str[ri]][str[le]]); } } ^ main.cpp:29:60: warning: array subscript has type 'char' [-Wchar-subscripts] ans = Str(cst[str[le]][str[ri]], -INF, -INF, cst[str[ri]][str[le]]); } } ^ main.cpp:29:69: warning: array subscript has type 'char' [-Wchar-subscripts] ans = Str(cst[str[le]][str[ri]], -INF, -INF, cst[str[ri]][str[le]]); } } ^ main.cpp:39:38: warning: array subscript has type 'char' [-Wchar-subscripts] cst[br1 ? str[prv[md]] : str[md]][bl2 ? str[nxt[md + 1]] : str[md + 1]]); } } } } } ^ main.cpp:39:76: warning: array subscript has type 'char' [-Wchar-subscripts] cst[br1 ? str[prv[md]] : str[md]][bl2 ? str[nxt[md + 1]] : str[md + 1]]); } } } } } ^ main.cpp:46:32: warning: array subscript has type 'char' [-Wchar-subscripts] cst[bc ? str[ri] : str[le]][bl ? str[nxt[le + 1]] : str[le + 1]] + ^ main.cpp:46:69: warning: array subscript has type 'char' [-Wchar-subscripts] cst[bc ? str[ri] : str[le]][bl ? str[nxt[le + 1]] : str[le + 1]] + ^ main.cpp:47:45: warning: array subscript has type 'char' [-Wchar-subscripts] cst[br ? str[prv[ri - 1]] : str[ri - 1]][bc ? str[le] : str[ri]]); } } } } ^ main.cpp:47:69: warning: array subscript has type 'char' [-Wchar-subscripts] cst[br ? str[prv[ri - 1]] : str[ri - 1]][bc ? str[le] : str[ri]]); } } } } ^ main.cpp: In function 'int main()': main.cpp:51:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("papuci.in", "r", stdin); ^ main.cpp:52:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("papuci.out", "w", stdout); ^ main.cpp:53:46: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] int n, m; scanf("%d %d %s", &n, &m, str + 1); ^ main.cpp:58:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &cst[i][j]); } } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms131kbOK55
23ms131kbOK55
33ms131kbOK55
43ms131kbOK55
53ms131kbOK55
63ms131kbOK55
73ms131kbOK55
83ms131kbOK55
93ms131kbOK55
103ms262kbOK55
1111ms262kbOK55
1224ms524kbOK55
1336ms1310kbOK55
1427ms1310kbOK55
1549ms3145kbOK55
1657ms8519kbOK525
1769ms8650kbOK5
18116ms3014kbOK5
19101ms5242kbOK5
2091ms3801kbOK5
Punctaj total100

Ceva nu functioneaza?