Pagini recente » Borderou de evaluare (job #1893723) | Borderou de evaluare (job #510905) | Borderou de evaluare (job #2274896) | Borderou de evaluare (job #2687057) | Borderou de evaluare (job #1877045)
Borderou de evaluare (job #1877045)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:23:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s[i]] ++;
^
user.cpp:39:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (i - f2[s[i]] <= 0)
^
user.cpp:42:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p[i].st = i - f2[s[i]];
^
user.cpp:43:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (i + f2[s[i]] >= n)
^
user.cpp:46:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p[i].dr = i + f2[s[i]];
^
user.cpp:17:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("char.in", "r", stdin);
^
user.cpp:18:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("char.out", "w", stdout);
^
user.cpp:20:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &n);
^
user.cpp:21:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:25:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &m);
^
user.cpp:30:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[j]);
^
/tmp/ccYUyPV9.o: In function `main':
user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 280kb | OK | 10 |
| 2 | 0ms | 276kb | OK | 10 |
| 3 | 0ms | 276kb | OK | 10 |
| 4 | 0ms | 276kb | OK | 10 |
| 5 | 0ms | 280kb | OK | 10 |
| 6 | 0ms | 280kb | OK | 10 |
| 7 | 0ms | 292kb | OK | 10 |
| 8 | 0ms | 356kb | OK | 10 |
| 9 | 4ms | 356kb | OK | 10 |
| 10 | 4ms | 352kb | OK | 10 |
| Punctaj total | 100 |