Borderou de evaluare (job #1791370)
Utilizator | Data | 29 octombrie 2016 11:58:41 | |
---|---|---|---|
Problema | Problema rucsacului | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void afisare()’:
user.cpp:35:19: error: ‘e’ was not declared in this scope
for(int i=1,j=e;j<=n;i++,++j)
^
user.cpp:37:13: error: ‘d’ was not declared in this scope
d[i][j]=INFINITY;
^
user.cpp:37:21: error: ‘INFINITY’ was not declared in this scope
d[i][j]=INFINITY;
^
user.cpp:39:55: error: ‘v’ was not declared in this scope
d[i][j]=min(d[i][j],d[i][k]+d[k+1][j]+v[i]*v[k+1]*v[j+1]);
^
user.cpp:41:5: error: ‘t’ was not declared in this scope
t<<d[1][n];
^
user.cpp:41:8: error: ‘d’ was not declared in this scope
t<<d[1][n];
^
user.cpp: In function ‘void read()’:
user.cpp:19:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &g);
^
user.cpp:22:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &i, &elem);
^
user.cpp: In function ‘int main()’:
user.cpp:46:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rucsac.in", "r", stdin);
^
user.cpp:47:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rucsac.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !