Pagini recente » Borderou de evaluare (job #492765) | Borderou de evaluare (job #1349969) | Borderou de evaluare (job #1472238) | Borderou de evaluare (job #190634) | Borderou de evaluare (job #1929963)
Borderou de evaluare (job #1929963)
Raport evaluator
Compilare:
user.cpp: In function ‘void Citeste()’:
user.cpp:23:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d%d", &n, &k);
^
user.cpp:23:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp: In function ‘void Afis()’:
user.cpp:31:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d\n", Lmax);
^
user.cpp: In function ‘void Calculeaza()’:
user.cpp:40:10: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s[0]]++; nr++;
^
user.cpp:47:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (f[s[j]] == 0)
^
user.cpp:49:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s[j]]++;
^
user.cpp:52:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else f[s[j]]++;
^
user.cpp:63:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s[i]]--;
^
user.cpp:64:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if ( f[s[i]] == 0 ) nr--;
^
user.cpp: In function ‘int main()’:
user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.in", "r", stdin);
^
user.cpp:14:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("teatru.out", "w", stdout);
^
user.cpp: In function ‘void Citeste()’:
user.cpp:23:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
user.cpp:24:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &s[0]); // citeste '\n'
^
user.cpp:26:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", s + i);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 260kb | OK | 10 |
2 | 0ms | 264kb | OK | 10 |
3 | 4ms | 316kb | OK | 10 |
4 | 4ms | 312kb | OK | 10 |
5 | 4ms | 316kb | OK | 10 |
6 | 4ms | 288kb | OK | 10 |
7 | 4ms | 300kb | OK | 10 |
8 | 4ms | 292kb | OK | 10 |
9 | 8ms | 316kb | OK | 10 |
10 | 8ms | 316kb | OK | 10 |
Punctaj total | 100 |