Pagini recente » Borderou de evaluare (job #1814484) | Borderou de evaluare (job #2112678) | Borderou de evaluare (job #2509709) | Borderou de evaluare (job #2949160) | Borderou de evaluare (job #2716699)
Borderou de evaluare (job #2716699)
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 |
1 | 2ms | 131kb | Corect | 10 |
2 | 2ms | 131kb | Corect | 5 |
3 | 3ms | 131kb | Corect | 5 |
4 | 3ms | 131kb | Corect | 5 |
5 | 36ms | 393kb | Corect | 5 |
6 | 42ms | 393kb | Corect | 5 |
7 | 47ms | 393kb | Corect | 5 |
8 | 55ms | 524kb | Corect | 5 |
9 | 3ms | 131kb | Corect | 5 |
10 | 3ms | 131kb | Corect | 5 |
11 | 4ms | 131kb | Corect | 5 |
12 | 4ms | 131kb | Corect | 5 |
13 | 48ms | 655kb | Corect | 5 |
14 | 56ms | 786kb | Corect | 5 |
15 | 61ms | 1179kb | Corect | 5 |
16 | 69ms | 1310kb | Corect | 5 |
17 | 78ms | 1441kb | Corect | 5 |
18 | 89ms | 1572kb | Corect | 5 |
19 | 88ms | 1703kb | Corect | 5 |
Punctaj total | 100 |