Borderou de evaluare (job #2716699)

Utilizator cyg_SerbanBFlorin Gheorghe cyg_SerbanB Data 5 martie 2021 15:41:51
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void findch()': main.cpp:41:17: warning: array subscript has type 'char' [-Wchar-subscripts] frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin(); ^ main.cpp:41:32: warning: array subscript has type 'char' [-Wchar-subscripts] frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin(); ^ main.cpp:41:54: warning: array subscript has type 'char' [-Wchar-subscripts] frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin(); ^ main.cpp:41:73: warning: array subscript has type 'char' [-Wchar-subscripts] frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin(); ^ main.cpp:41:93: warning: array subscript has type 'char' [-Wchar-subscripts] frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin(); ^ main.cpp: In function 'int main()': main.cpp:51:15: warning: array subscript has type 'char' [-Wchar-subscripts] f[s[i]]++; ^ main.cpp:52:17: warning: array subscript has type 'char' [-Wchar-subscripts] poz[s[i]].push_back(i); ^ main.cpp:45:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("caps.in","r",stdin); ^ main.cpp:46:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("caps.out","w",stdout); ^ main.cpp:47:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld\n",&len,&q); ^ main.cpp:48:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s",s); ^ main.cpp:57:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbCorect10
22ms131kbCorect5
33ms131kbCorect5
43ms131kbCorect5
536ms393kbCorect5
642ms393kbCorect5
747ms393kbCorect5
855ms524kbCorect5
93ms131kbCorect5
103ms131kbCorect5
114ms131kbCorect5
124ms131kbCorect5
1348ms655kbCorect5
1456ms786kbCorect5
1561ms1179kbCorect5
1669ms1310kbCorect5
1778ms1441kbCorect5
1889ms1572kbCorect5
1988ms1703kbCorect5
Punctaj total100

Ceva nu functioneaza?