Borderou de evaluare (job #1019985)
Utilizator | Data | 1 noiembrie 2013 14:19:04 | |
---|---|---|---|
Problema | Parantezare optima de matrici | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: expected initializer before ‘int’
int n;
^
user.cpp: In function ‘void citire()’:
user.cpp:13:18: error: ‘n’ was not declared in this scope
scanf("%d", &n);
^
user.cpp: In function ‘void rezolvare()’:
user.cpp:30:22: error: ‘n’ was not declared in this scope
for (i = 1; i <= n; i++)
^
user.cpp:31:9: error: ‘cost’ was not declared in this scope
cost[i][i] = 0;
^
user.cpp:32:28: error: ‘n’ was not declared in this scope
for (diag = 2; diag <= n; diag++)
^
user.cpp:37:36: warning: left shift count >= width of type [enabled by default]
long long minim = 1 << 62;
^
user.cpp:40:31: error: ‘cost’ was not declared in this scope
long long t = cost[i][k] + cost[k+1][j] + lin(i)*col(k)*col(j);
^
user.cpp:44:13: error: ‘cost’ was not declared in this scope
cost[i][j] = minim;
^
user.cpp: In function ‘void debug()’:
user.cpp:51:26: error: ‘n’ was not declared in this scope
for (int i = 1; i <= n; i++)
^
user.cpp:54:28: error: ‘cost’ was not declared in this scope
printf("%d\t", cost[i][j]);
^
user.cpp: In function ‘int main()’:
user.cpp:65:20: error: ‘cost’ was not declared in this scope
printf("%d\n", cost[1][n]);
^
user.cpp:65:28: error: ‘n’ was not declared in this scope
printf("%d\n", cost[1][n]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !