Pagini recente » Borderou de evaluare (job #1669260) | Borderou de evaluare (job #1429344) | Borderou de evaluare (job #1000712) | Borderou de evaluare (job #1091838) | Borderou de evaluare (job #1661321)
Borderou de evaluare (job #1661321)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:23:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[60005]’ [-Wformat=]
scanf("%s\n",&s);
^
user.cpp:38:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (val[s[i]]<0)
^
user.cpp:39:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
st.push(-val[s[i]]);
^
user.cpp:41:54: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (st.size()&&st.top()==val[s[i]])
^
user.cpp:14:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("editor.in","r",stdin);
^
user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("editor.out","w",stdout);
^
user.cpp:18:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (scanf("%d",&t);t;t--) {
^
user.cpp:23:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n",&s);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 560kb | OK | 10 | 40 |
2 | 0ms | 564kb | OK | 10 |
3 | 0ms | 564kb | OK | 10 |
4 | 0ms | 572kb | OK | 10 |
5 | 8ms | 572kb | OK | 10 | 10 |
6 | 8ms | 592kb | OK | 10 | 10 |
7 | 16ms | 612kb | OK | 10 | 10 |
8 | 28ms | 600kb | OK | 10 | 10 |
9 | 20ms | 600kb | OK | 10 | 10 |
10 | 32ms | 656kb | OK | 10 | 10 |
Punctaj total | 100 |