Borderou de evaluare (job #2147600)
Utilizator | Data | 28 februarie 2018 20:47:22 | |
---|---|---|---|
Problema | Trapez | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: ‘hash’ does not name a type
hash<double>mhash;
^
user.cpp: In member function ‘int hashr::operator()(const double&) const’:
user.cpp:16:15: error: ‘mhash’ was not declared in this scope
return mhash(x);}
^
user.cpp: In function ‘int main()’:
user.cpp:31:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trapez.in","r",stdin);
^
user.cpp:32:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trapez.out","w",stdout);
^
user.cpp:35:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:38:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&v[i].first,&v[i].second);
^
user.cpp:50:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&v2[i].x,&v2[i].y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !