Borderou de evaluare (job #1726489)
Utilizator | Data | 8 iulie 2016 10:04:55 | |
---|---|---|---|
Problema | Taxe2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:44:45: error: ‘j’ was not declared in this scope
for (int i=1;i<=n;i++) scanf("%d",&t[i][j]);
^
user.cpp:54:14: error: ‘i’ was not declared in this scope
if (s-dp[i][j]<0) printf("-1"); else
^
user.cpp:54:17: error: ‘j’ was not declared in this scope
if (s-dp[i][j]<0) printf("-1"); else
^
user.cpp:39:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("taxe2.in","r",stdin);
^
user.cpp:40:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("taxe2.out","w",stdout);
^
user.cpp:42:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&s,&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !