Borderou de evaluare (job #1284862)
Raport evaluator
Compilare:
user.cpp: In function ‘bool prefix(char*, char*, int, int)’:
user.cpp:28:9: warning: unused variable ‘lg’ [-Wunused-variable]
int lg=strlen(a+1); int i;
^
user.cpp: In function ‘void multimi1(int)’:
user.cpp:41:18: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if (i>>j&1!=0) a[++nr1]=s[j];
^
user.cpp: In function ‘int multimi2(int)’:
user.cpp:71:18: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if (i>>j&1!=0) a[++nr1]=s[j+n];
^
user.cpp:94:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:98:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("subsiruri2.in","r",stdin);
^
user.cpp:99:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("subsiruri2.out","w",stdout);
^
user.cpp:101:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:102:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccb50Wk1.o: In function `main':
user.cpp:(.text.startup+0x67): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 16ms | 352kb | Incorect | 0 |
2 | 0ms | 284kb | Incorect | 0 |
3 | 0ms | 292kb | Incorect | 0 |
4 | 0ms | 300kb | Incorect | 0 |
5 | 16ms | 344kb | Incorect | 0 |
6 | 36ms | 348kb | OK | 10 |
7 | 72ms | 388kb | OK | 10 |
8 | 348ms | 348kb | Incorect | 0 |
9 | 372ms | 364kb | Incorect | 0 |
10 | 308ms | 376kb | OK | 10 |
Punctaj total | 30 |