Borderou de evaluare (job #1633272)

Utilizator HawksCBalota George HawksC Data 6 martie 2016 11:54:48
Problema MaxSubSum Status done
Runda ONIS 2016, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read_data()’: user.cpp:75:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d\n", &n, &m); ^ user.cpp:75:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:78:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d ", &b[i]); ^ user.cpp:80:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d ", &c[i]); ^ user.cpp: In function ‘long int** aloc(long int)’: user.cpp:91:28: error: expected ‘)’ before ‘sizeof’ tab = (long )malloc(n sizeof(long )); ^ user.cpp:91:9: error: invalid conversion from ‘long int’ to ‘long int**’ [-fpermissive] tab = (long )malloc(n sizeof(long )); ^ user.cpp:93:35: error: expected ‘)’ before ‘sizeof’ tab[i] = (long )malloc(n sizeof(long )); ^ user.cpp:93:16: error: invalid conversion from ‘long int’ to ‘long int*’ [-fpermissive] tab[i] = (long )malloc(n sizeof(long )); ^ user.cpp: In function ‘void run()’: user.cpp:118:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d \n",sum[n-1][n-1]); ^ user.cpp: In function ‘void read_data()’: user.cpp:75:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &m); ^ user.cpp:78:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &b[i]); ^ user.cpp:80:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &c[i]); ^ user.cpp: In function ‘int main()’: user.cpp:123:38: 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:124:40: 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); ^

Ceva nu functioneaza?