Borderou de evaluare (job #1801117)
Utilizator | Data | 8 noiembrie 2016 17:57:40 | |
---|---|---|---|
Problema | Parantezare optima de matrici | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:1: error: expected initializer before ‘long’
long dp[505][505];
^
user.cpp: In function ‘void citire()’:
user.cpp:14:22: error: ‘a’ was not declared in this scope
scanf("%d", &a[i]);
^
user.cpp:18:17: error: ‘dp’ was not declared in this scope
dp[i][j]=INF;
^
user.cpp: In function ‘void afisare()’:
user.cpp:26:31: error: ‘dp’ was not declared in this scope
printf("%d ", dp[i][j]);
^
user.cpp: In function ‘void createMatrice(int)’:
user.cpp:38:17: error: ‘dp’ was not declared in this scope
dp[i][j]=min(dp[i][k]+dp[k+1][j]+a[i-1]*a[k]*a[j], dp[i][j]);
^
user.cpp:38:50: error: ‘a’ was not declared in this scope
dp[i][j]=min(dp[i][k]+dp[k+1][j]+a[i-1]*a[k]*a[j], dp[i][j]);
^
user.cpp: In function ‘void rezolvare()’:
user.cpp:51:18: error: ‘dp’ was not declared in this scope
printf("%d", dp[1][n]);
^
user.cpp: In function ‘void citire()’:
user.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp: In function ‘int main()’:
user.cpp:56: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:57: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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !