Pagini recente » Borderou de evaluare (job #1128716) | Borderou de evaluare (job #2437882) | Borderou de evaluare (job #3275308) | Borderou de evaluare (job #2818579) | Borderou de evaluare (job #2112626)
Borderou de evaluare (job #2112626)
Raport evaluator
Compilare:
user.cpp: In function ‘long long int getrez(long long int, long long int, bool, char)’:
user.cpp:40:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return fr[c];
^
user.cpp:50:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
rez += frAfter1Stage[c] << (stage - 2);
^
user.cpp: In function ‘int main()’:
user.cpp:61:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
frAfter1Stage[C[i]]++;
^
user.cpp:68:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
fr[C[i]]++;
^
user.cpp:56:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d\n",&N,&Q);
^
user.cpp:57:26: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(C + 1,100005,f);
^
user.cpp:75:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%lld",&pos);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:1:
In function ‘char* fgets(char*, int, FILE*)’,
inlined from ‘int main()’ at user.cpp:57:26:
/usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default]
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 276kb | Corect | 10 |
2 | 0ms | 280kb | Partial corect | 2 |
3 | 0ms | 280kb | Partial corect | 2 |
4 | 0ms | 272kb | Partial corect | 2 |
5 | 68ms | 284kb | Partial corect | 2 |
6 | 80ms | 276kb | Partial corect | 2 |
7 | 88ms | 280kb | Partial corect | 2 |
8 | 100ms | 280kb | Partial corect | 2 |
9 | 0ms | 280kb | Partial corect | 2 |
10 | 0ms | 280kb | Partial corect | 2 |
11 | 0ms | 280kb | Partial corect | 2 |
12 | 4ms | 280kb | Corect | 5 |
13 | 80ms | 292kb | Partial corect | 2 |
14 | 92ms | 312kb | Partial corect | 2 |
15 | 100ms | 348kb | Partial corect | 2 |
16 | 116ms | 360kb | Partial corect | 2 |
17 | 140ms | 368kb | Partial corect | 2 |
18 | 164ms | 376kb | Corect | 5 |
19 | 168ms | 376kb | Corect | 5 |
Punctaj total | 55 |