Borderou de evaluare (job #1634368)

Utilizator AkerToropu Alexandru Aker Data 6 martie 2016 13:47:19
Problema Minlcm Status done
Runda ONIS 2016, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int max_sum_submatrix(int, int)’: user.cpp:34:58: error: cannot convert ‘long long int*’ to ‘int*’ for argument ‘1’ to ‘int max_sum_subarray(int*, int)’ maxsum = max(maxsum, max_sum_subarray(temp, n)); ^ user.cpp: In function ‘int main()’: user.cpp:64:46: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%lld",max_sum_submatrix(N, M)); ^ user.cpp:43:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("maxsubsum.in","r",stdin); ^ user.cpp:44:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("maxsubsum.out","w",stdout); ^ user.cpp:46:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&N,&M); ^ user.cpp:51:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&A[i]); ^ user.cpp:54:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&B[i]); ^

Ceva nu functioneaza?