Pagini recente » Borderou de evaluare (job #678602) | Borderou de evaluare (job #1873026) | Borderou de evaluare (job #2318469) | Borderou de evaluare (job #495415) | Borderou de evaluare (job #1320367)
Borderou de evaluare (job #1320367)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p=p+w[s[i]];
^
user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("texttrim.in","r",stdin);
^
user.cpp:10:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("texttrim.out","w",stdout);
^
user.cpp:11:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&w[' ']);
^
user.cpp:13:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&w['a'+i-1]);
^
user.cpp:14:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
user.cpp:15:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s+1); n=strlen(s+1);
^
user.cpp:16:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&nr); p=0;
^
/tmp/ccDtC44m.o: In function `main':
user.cpp:(.text.startup+0xb5): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 264kb | OK | 10 | 100 |
2 | 0ms | 260kb | OK | 10 |
3 | 0ms | 264kb | OK | 10 |
4 | 0ms | 256kb | OK | 10 |
5 | 0ms | 292kb | OK | 10 |
6 | 0ms | 456kb | OK | 10 |
7 | 4ms | 1224kb | OK | 10 |
8 | 16ms | 1228kb | OK | 10 |
9 | 4ms | 1232kb | OK | 10 |
10 | 4ms | 1232kb | OK | 10 |
Punctaj total | 100 |