Pagini recente » Borderou de evaluare (job #66980) | Borderou de evaluare (job #2323883) | Borderou de evaluare (job #743416) | Borderou de evaluare (job #1379389) | Borderou de evaluare (job #1636308)
Borderou de evaluare (job #1636308)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b[i]]++;
^
user.cpp:20:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[a[i]]>0&&t==0)
^
user.cpp:22:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[a[i]]--;
^
user.cpp:48:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b1[i+1]]++;
^
user.cpp:54:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[aux]++;
^
user.cpp:87:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b[i]]++;
^
user.cpp:95:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[a[i]]>0&&t==0)
^
user.cpp:97:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[a[i]]--;
^
user.cpp:124:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b2[i+1]]++;
^
user.cpp:130:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[aux]++;
^
user.cpp:6:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vecini2.in","r",stdin);
^
user.cpp:7:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vecini2.out","w",stdout);
^
user.cpp:8:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:9:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a+1);
^
user.cpp:10:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(b+1);
^
/tmp/ccrglBwa.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 | 272kb | OK | 10 |
2 | Depăşit | 260kb | Time limit exceeded. | 0 |
3 | 0ms | 264kb | OK | 10 |
4 | 0ms | 280kb | OK | 10 |
5 | 0ms | 276kb | OK | 10 |
6 | 0ms | 276kb | OK | 10 |
7 | 0ms | 280kb | OK | 10 |
8 | 0ms | 280kb | OK | 10 |
9 | 0ms | 276kb | OK | 10 |
10 | 0ms | 280kb | OK | 10 |
Punctaj total | 90 |