Pagini recente » Borderou de evaluare (job #1854043) | Borderou de evaluare (job #565123) | Borderou de evaluare (job #1850260) | Borderou de evaluare (job #2885946) | Borderou de evaluare (job #2127566)
Borderou de evaluare (job #2127566)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[5002]’ [-Wformat=]
fscanf(f,"%d\n%s\n%s",&n,&a,&b);
^
user.cpp:12:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 5 has type ‘char (*)[5002]’ [-Wformat=]
user.cpp:14:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b[i]]++,v2[b[i]]++;
^
user.cpp:14:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b[i]]++,v2[b[i]]++;
^
user.cpp:17:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[a[i]])
^
user.cpp:19:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[a[i]]--;
^
user.cpp:20:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v2[a[i]]--;
^
user.cpp:12:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d\n%s\n%s",&n,&a,&b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 876kb | Incorect | 0 |
2 | 0ms | 816kb | Incorect | 0 |
3 | 0ms | 792kb | OK | 10 |
4 | 0ms | 756kb | OK | 10 |
5 | 0ms | 860kb | OK | 10 |
6 | 0ms | 876kb | OK | 10 |
7 | 0ms | 796kb | OK | 10 |
8 | 0ms | 808kb | OK | 10 |
9 | 0ms | 872kb | OK | 10 |
10 | 0ms | 872kb | OK | 10 |
Punctaj total | 80 |