Borderou de evaluare (job #1279132)
Utilizator | Data | 29 noiembrie 2014 20:14:44 | |
---|---|---|---|
Problema | Arbore3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void df(long unsigned int, long unsigned int)’:
user.cpp:14:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<m[x].size();++i) {
^
user.cpp:15:13: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<long unsigned int>’ and ‘std::unordered_set<long unsigned int>::size_type {aka unsigned int}’)
nr=h[h.size()-1]+m[x][i].second;
^
user.cpp: In function ‘int main()’:
user.cpp:25:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("arbore3.in","r",stdin);
^
user.cpp:26:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("arbore3.out","w",stdout);
^
user.cpp:27:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld",&n,&s);
^
user.cpp:29:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !