Borderou de evaluare (job #1250308)

Utilizator danny794Dan Danaila danny794 Data 27 octombrie 2014 23:36:01
Problema Permutari Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read()’: user.cpp:85:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d", &N, &K); ^ user.cpp:85:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:97:45: error: cannot convert ‘long long int*’ to ‘int*’ for argument ‘1’ to ‘void multiplyByArray(int*, int*, int*)’ multiplyByArray(aux, matrix[i][k-1], res); ^ user.cpp:98:26: error: cannot convert ‘long long int*’ to ‘int*’ for argument ‘1’ to ‘void add(int*, int*)’ add(matrix[n][k], res); ^ user.cpp:99:30: error: cannot convert ‘long long int*’ to ‘int*’ for argument ‘1’ to ‘void multiplyByConstant(int*, int)’ multiplyByConstant(aux, i); ^ user.cpp:108:43: error: cannot convert ‘long long int*’ to ‘int*’ for argument ‘1’ to ‘void multiplyByArray(int*, int*, int*)’ multiplyByArray(aux, matrix[i][K-1], res); ^ user.cpp:109:24: error: cannot convert ‘long long int*’ to ‘int*’ for argument ‘1’ to ‘void add(int*, int*)’ add(matrix[N][K], res); ^ user.cpp:110:28: error: cannot convert ‘long long int*’ to ‘int*’ for argument ‘1’ to ‘void multiplyByConstant(int*, int)’ multiplyByConstant(aux, i); ^ user.cpp:113:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", matrix[N][K][matrix[N][K][0]]); ^ user.cpp:115:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%04d", matrix[N][K][i]); ^ user.cpp:83:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perm.in", "r", stdin); ^ user.cpp:84:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perm.out", "w", stdout); ^ user.cpp:85:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &K); ^

Ceva nu functioneaza?