Borderou de evaluare (job #2156940)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 9 martie 2018 09:08:20
Problema Sudest Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void solve(int, int, int)’: user.cpp:28:35: error: too many arguments to function ‘void solve(int, int, int)’ solve(i - p, j, k - 1, sum); ^ user.cpp:18:6: note: declared here void solve(int i, int j, int k) { ^ user.cpp:30:31: error: expected ‘)’ before ‘sum’ solve(i, j - p, k - 1 sum); ^ user.cpp: In function ‘int main()’: user.cpp:37:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sudest.in", "r", stdin); ^ user.cpp:38:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sudest.out", "w", stdout); ^ user.cpp:41:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:45:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &mat[i][j]); ^ user.cpp:48:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.cpp:51:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &arr[i]); ^

Ceva nu functioneaza?