Pagini recente » Borderou de evaluare (job #3029122) | Borderou de evaluare (job #1820980) | Borderou de evaluare (job #2839201) | Borderou de evaluare (job #1364928) | Borderou de evaluare (job #2235700)
Borderou de evaluare (job #2235700)
Raport evaluator
Compilare:
user.cpp: In function ‘int power(int)’:
user.cpp:5:20: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
return (2 << x - 1);
~~^~~
user.cpp: In function ‘int zParcurgere(int, int, int)’:
user.cpp:11:29: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
int length = (1 << pasi - 1), n = power(length);
~~~~~^~~
user.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:23:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("z.in", "r", stdin);
^
user.cpp:24:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("z.out", "w", stdout);
^
user.cpp:27:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
user.cpp:31:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 756kb | Incorect | 0 |
2 | 0ms | 936kb | Incorect | 0 |
3 | 0ms | 804kb | Incorect | 0 |
4 | 0ms | 880kb | Incorect | 0 |
5 | 0ms | 936kb | Incorect | 0 |
6 | 0ms | 792kb | Incorect | 0 |
7 | 0ms | 752kb | Incorect | 0 |
8 | 0ms | 868kb | Incorect | 0 |
9 | 0ms | 804kb | Incorect | 0 |
10 | 0ms | 808kb | Incorect | 0 |
Punctaj total | 0 |