Borderou de evaluare (job #1431242)
Utilizator | Data | 9 mai 2015 05:32:24 | |
---|---|---|---|
Problema | Arbvalmax | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void DF(int)’:
user.cpp:26:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < G[node].size(); i++) {
^
user.cpp: In function ‘int main()’:
user.cpp:75:51: error: ‘sort’ was not declared in this scope
sort(sortedNodes + 1, sortedNodes + N + 1, cmp);
^
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("arbvalmax.in", "r", stdin);
^
user.cpp:60:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbvalmax.out", "w", stdout);
^
user.cpp:62:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &N, &M);
^
user.cpp:66:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &parent);
^
user.cpp:71:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &val[i]);
^
user.cpp:99:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d ", &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !