Borderou de evaluare (job #1456837)
Utilizator | Data | 2 iulie 2015 03:53:45 | |
---|---|---|---|
Problema | PetSoft | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int)’:
user.cpp:29:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < sons.size(); ++i) {
^
user.cpp:34:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int d = 1; d < sons.size(); ++d)
^
user.cpp:35:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < sons.size(); ++i) {
^
user.cpp:37:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j == sons.size())
^
user.cpp:41:59: error: ‘innerDP’ was not declared in this scope
innerDP1[i][j] = abs(sons[i] - sons[j]) + max(innerDP[0][i + 1][j - 1], innerDP1[i + 1][j - 1]);
^
user.cpp: In function ‘int main()’:
user.cpp:58:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("petsoft.in", "r", stdin);
^
user.cpp:59:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("petsoft.out", "w", stdout);
^
user.cpp:62:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:65:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &father);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !