Pagini recente » Borderou de evaluare (job #1009509) | Borderou de evaluare (job #2124235) | Borderou de evaluare (job #1907420) | Borderou de evaluare (job #1192133) | Borderou de evaluare (job #2251838)
Borderou de evaluare (job #2251838)
Raport evaluator
Compilare:
user.cpp: In function ‘bool chk(int)’:
user.cpp:19:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(sz[t[i]] < cnt[p + 1][t[i]] + r) {
^
user.cpp:19:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(sz[t[i]] < cnt[p + 1][t[i]] + r) {
^
user.cpp:22:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p = pos[t[i]][cnt[p + 1][t[i]] + r - 1];
^
user.cpp:22:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p = pos[t[i]][cnt[p + 1][t[i]] + r - 1];
^
user.cpp: In function ‘int main()’:
user.cpp:41:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
pos[s[i]][sz[s[i]]++] = i;
^
user.cpp:41:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
pos[s[i]][sz[s[i]]++] = i;
^
user.cpp:46:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cnt[i][s[i - 1]]++;
^
user.cpp:28:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("balbaiala.in", "r", stdin);
^
user.cpp:29:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("balbaiala.out", "w", stdout);
^
user.cpp:31:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &q);
^
user.cpp:33:26: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(s, maxn, stdin);
^
user.cpp:49:30: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(t, maxn, stdin);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 3404kb | OK | 10 | 20 |
2 | 0ms | 5452kb | OK | 10 |
3 | 8ms | 11732kb | OK | 10 | 20 |
4 | 8ms | 11728kb | OK | 10 |
5 | 68ms | 9708kb | OK | 10 | 30 |
6 | 104ms | 11752kb | OK | 10 |
7 | 136ms | 9708kb | OK | 10 |
8 | 284ms | 13868kb | OK | 10 | 30 |
9 | 156ms | 15924kb | OK | 10 |
10 | 224ms | 17960kb | OK | 10 |
Punctaj total | 100 |