Pagini recente » Borderou de evaluare (job #2686428) | Borderou de evaluare (job #2340439) | Borderou de evaluare (job #2463513) | Borderou de evaluare (job #1767033) | Borderou de evaluare (job #1636307)
Borderou de evaluare (job #1636307)
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:18:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[a[i]]>0)
^
user.cpp:20:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[a[i]]--;
^
user.cpp:51:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[aux]++;
^
user.cpp:84:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b[i]]++;
^
user.cpp:90:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[a[i]]>0)
^
user.cpp:92:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[a[i]]--;
^
user.cpp:123: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/ccKUmJu2.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 | 0ms | 264kb | Incorect | 0 |
| 3 | 0ms | 268kb | OK | 10 |
| 4 | 0ms | 280kb | OK | 10 |
| 5 | 0ms | 272kb | OK | 10 |
| 6 | 0ms | 272kb | OK | 10 |
| 7 | 0ms | 284kb | OK | 10 |
| 8 | 0ms | 280kb | OK | 10 |
| 9 | 0ms | 284kb | OK | 10 |
| 10 | 0ms | 280kb | OK | 10 |
| Punctaj total | 90 |