Pagini recente » Borderou de evaluare (job #1167185) | Borderou de evaluare (job #635251) | Borderou de evaluare (job #3178907) | Borderou de evaluare (job #1474128) | Borderou de evaluare (job #1560523)
Borderou de evaluare (job #1560523)
Raport evaluator
Compilare:
user.cpp: In function ‘void init()’:
user.cpp:18:28: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
pre[i] = pre[i-1] + (1<<i-1)*i;
^
user.cpp: In function ‘long long int getPosition(long long int)’:
user.cpp:26:33: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
toReturn += biti*(x-(1<<biti-1)+1);
^
user.cpp: In function ‘void get(char*, long long int)’:
user.cpp:46:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < strlen(t)/2; i++)
^
user.cpp: In function ‘void solve2()’:
user.cpp:124:74: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = min(0, (int)strlen(aft)-(int)strlen(bef)); j < strlen(aft); j++) {
^
user.cpp:126:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (k = j; k < strlen(aft) && ok; k++)
^
user.cpp:137:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < strlen(sol); i++)
^
user.cpp: In function ‘int main()’:
user.cpp:148:51: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("infinitepatternmatching.in", "r", stdin);
^
user.cpp:149:53: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("infinitepatternmatching.out", "w", stdout);
^
user.cpp:151:9: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccP0zZNv.o: In function `main':
user.cpp:(.text.startup+0x53): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 408kb | Incorect | 0 |
2 | 0ms | 404kb | Incorect | 0 |
3 | 0ms | 404kb | OK | 4 |
4 | 0ms | 412kb | Incorect | 0 |
5 | 0ms | 412kb | OK | 4 |
6 | 0ms | 404kb | Incorect | 0 |
7 | 0ms | 404kb | Incorect | 0 |
8 | 0ms | 408kb | OK | 4 |
9 | 0ms | 404kb | Incorect | 0 |
10 | 0ms | 404kb | Incorect | 0 |
11 | 0ms | 408kb | OK | 4 |
12 | 0ms | 412kb | OK | 4 |
13 | 0ms | 412kb | Incorect | 0 |
14 | 0ms | 408kb | OK | 4 |
15 | 0ms | 412kb | OK | 4 |
16 | 0ms | 412kb | OK | 4 |
17 | 0ms | 416kb | OK | 4 |
18 | 0ms | 408kb | OK | 4 |
19 | 0ms | 412kb | OK | 4 |
20 | 0ms | 408kb | OK | 4 |
21 | 0ms | 416kb | Incorect | 0 |
22 | 0ms | 404kb | Incorect | 0 |
23 | 0ms | 408kb | Incorect | 0 |
24 | 0ms | 412kb | Incorect | 0 |
25 | 0ms | 404kb | Incorect | 0 |
Punctaj total | 48 |