Borderou de evaluare (job #783971)
Utilizator | Data | 4 septembrie 2012 16:42:38 | |
---|---|---|---|
Problema | Zmeu2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void BF()’:
user.cpp:71:89: error: expected ‘]’ before ‘)’ token
if(dp[*it][now.cap - C[now.start] > now.dist + D[now.start])
^
user.cpp:58:10: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
user.cpp: In function ‘int main()’:
user.cpp:25:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zmeu2.in", "r", stdin);
^
user.cpp:26:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zmeu2.out", "w", stdout);
^
user.cpp:28:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i %i %i", &N, &P, &K);
^
user.cpp:30:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i %i", &D[i], &C[i]);
^
user.cpp:40:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i %i", &X, &Y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !