Borderou de evaluare (job #1691406)
Utilizator | Data | 18 aprilie 2016 11:28:02 | |
---|---|---|---|
Problema | Culegere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘bool Sarpe::corp(int, int)’:
user.cpp:158:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < segment.size(); i++)
^
user.cpp: In function ‘int t(int, int, int, int)’:
user.cpp:226:25: error: ‘abs’ was not declared in this scope
return abs(xp - xsarpe);
^
user.cpp:229:31: error: ‘abs’ was not declared in this scope
return dim - abs(xp - xsarpe);
^
user.cpp: In function ‘void coliziune_T(Segment, int)’:
user.cpp:246:58: error: ‘abs’ was not declared in this scope
if (d <= lung_ramasa - abs(sarpe.coord[sarpe.tip] - s.st))
^
user.cpp: In function ‘void coliziune_sarpe()’:
user.cpp:286:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < sarpe.segment.size(); i++)
^
user.cpp:291:40: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (s.coord = sarpe.coord[sarpe.tip])
^
user.cpp:284:6: warning: unused variable ‘sel’ [-Wunused-variable]
int sel = sarpe.tip;
^
user.cpp: In function ‘void coliziune_eveniment()’:
user.cpp:317:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = index[tip][iv]; i < ev[tip][iv].size(); i++)
^
user.cpp: In function ‘int t(int, int, int, int)’:
user.cpp:231:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:399:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("culegere.in", "r", stdin);
^
user.cpp:400:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("culegere.out", "w", stdout);
^
user.cpp:402:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:403:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
^
user.cpp:404:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
user.cpp:405:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !