Pagini recente » Borderou de evaluare (job #3172171) | Borderou de evaluare (job #185056) | Borderou de evaluare (job #843260) | Borderou de evaluare (job #1170351) | Borderou de evaluare (job #2262169)
Borderou de evaluare (job #2262169)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:23:24: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[60005]' [-Wformat=]
scanf("%s\n",&s);
^
main.cpp:38:29: warning: array subscript has type 'char' [-Wchar-subscripts]
if (val[s[i]]<0)
^
main.cpp:39:38: warning: array subscript has type 'char' [-Wchar-subscripts]
st.push(-val[s[i]]);
^
main.cpp:41:54: warning: array subscript has type 'char' [-Wchar-subscripts]
if (st.size()&&st.top()==val[s[i]])
^
main.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);
^
main.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);
^
main.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--) {
^
main.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 | 4ms | 393kb | OK | 10 | 40 |
2 | 5ms | 393kb | OK | 10 |
3 | 5ms | 393kb | OK | 10 |
4 | 4ms | 393kb | OK | 10 |
5 | 7ms | 393kb | OK | 10 | 10 |
6 | 7ms | 393kb | OK | 10 | 10 |
7 | 12ms | 524kb | OK | 10 | 10 |
8 | 25ms | 524kb | OK | 10 | 10 |
9 | 19ms | 393kb | OK | 10 | 10 |
10 | 34ms | 524kb | OK | 10 | 10 |
Punctaj total | 100 |