Borderou de evaluare (job #2023919)

Utilizator dragomirmanuelDragomir Manuel dragomirmanuel Data 19 septembrie 2017 18:00:09
Problema Parantezare optima de matrici Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Read()’: user.cpp:18:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &d[i]); ^ user.cpp: In function ‘void Dinamica()’: user.cpp:32:24: error: ‘LONG_LONG_MAX’ was not declared in this scope dp[i][j] = LONG_LONG_MAX; ^ user.cpp:39:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", dp[1][N]); ^ user.cpp: In function ‘void Read()’: user.cpp:15:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:18:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &d[i]); ^ user.cpp: In function ‘int main()’: user.cpp:44:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("podm.in", "r", stdin); ^ user.cpp:45:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("podm.out", "w", stdout); ^

Ceva nu functioneaza?