Borderou de evaluare (job #2449926)

Utilizator claudiu.gatinaFMI Claudiu Gatina claudiu.gatina Data 21 august 2019 10:46:05
Problema Nc Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:26:11: warning: array subscript has type 'char' [-Wchar-subscripts] type[c] = LETTER; ^ main.cpp:29:11: warning: array subscript has type 'char' [-Wchar-subscripts] type[c] = LETTER; ^ main.cpp:37:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < s.size(); ++i) ~~^~~~~~~~~~ main.cpp:39:31: warning: array subscript has type 'char' [-Wchar-subscripts] if (word == 0 && type[s[i]] == LETTER) ^ main.cpp:44:31: warning: array subscript has type 'char' [-Wchar-subscripts] if (word == 1 && type[s[i]] != LETTER) ^ main.cpp:50:18: warning: array subscript has type 'char' [-Wchar-subscripts] if (type[s[i]] == END) ^ main.cpp:62:28: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=] printf("%d\n", sol.size()); ^ main.cpp:64:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < sol.size(); ++i) ~~^~~~~~~~~~~~ main.cpp:15:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("nc.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
43ms131kbOK10
53ms131kbOK10
66ms393kbOK10
711ms778kbOK10
815ms978kbOK10
918ms995kbOK10
1020ms1200kbOK10
Punctaj total100

Ceva nu functioneaza?