Pagini recente » Borderou de evaluare (job #2495611) | Borderou de evaluare (job #1239628) | Borderou de evaluare (job #175948) | Borderou de evaluare (job #2237629) | Borderou de evaluare (job #2215813)
Borderou de evaluare (job #2215813)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:17:41: warning: array subscript has type ‘char’ [-Wchar-subscripts]
alf[text[i] = fgetc( fin ) - 'a'] = 1;
^
user.cpp:31:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(alf[text[i]] > maxim)
^
user.cpp:33:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
maxim = alf[text[i]];
^
user.cpp:36:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else if(alf[text[i]] == maxim)
^
user.cpp:40:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if ( capete[j = i + 100 + 1 + alf[text[i]]] < (m = i + 100 + 1 - alf[text[i]]) )
^
user.cpp:40:85: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if ( capete[j = i + 100 + 1 + alf[text[i]]] < (m = i + 100 + 1 - alf[text[i]]) )
^
user.cpp:13:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d ", &n );
^
user.cpp:20:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d", &h );
^
user.cpp:26:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d", &alf[j++] );
^
user.cpp:38:19: warning: ‘nmax’ may be used uninitialized in this function [-Wmaybe-uninitialized]
nmax++;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 868kb | OK | 10 |
2 | 0ms | 804kb | OK | 10 |
3 | 0ms | 876kb | OK | 10 |
4 | 0ms | 756kb | OK | 10 |
5 | 0ms | 796kb | OK | 10 |
6 | 0ms | 808kb | OK | 10 |
7 | 0ms | 752kb | OK | 10 |
8 | 0ms | 856kb | OK | 10 |
9 | 0ms | 816kb | OK | 10 |
10 | 0ms | 804kb | OK | 10 |
Punctaj total | 100 |