Borderou de evaluare (job #2303845)

Utilizator cezar.plescaCezar Plesca cezar.plesca Data 17 decembrie 2018 00:58:20
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void update(int, int)': main.cpp:12:30: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] for (; x <= N; x += x^(x-1) & x) ~~~~~~^~~ main.cpp: In function 'int query(int)': main.cpp:19:25: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] for (; x; x -= x^(x-1) & x) ~~~~~~^~~ main.cpp: In function 'int main()': main.cpp:37:35: error: 'memcpy' was not declared in this scope memcpy(values,V,(N+1)*sizeof(int)); ^ main.cpp:29:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("scmax_test9.in", "r", stdin); ^ main.cpp:30:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("scmax.out", "w", stdout); ^ main.cpp:32:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ main.cpp:34:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &V[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?