Borderou de evaluare (job #1776087)
Utilizator | Data | 10 octombrie 2016 22:21:45 | |
---|---|---|---|
Problema | Infasuratoare convexa | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void lire()’:
user.cpp:26:35: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (p.x<mp.x || p.x==mp.x && p.y<mp.y) mp=p;
^
user.cpp: In function ‘void ca()’:
user.cpp:4:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define as a.size()
^
user.cpp:43:26: note: in expansion of macro ‘as’
for (int i=0,q=as; i<as; i++)
^
user.cpp:43:18: warning: unused variable ‘q’ [-Wunused-variable]
for (int i=0,q=as; i<as; i++)
^
user.cpp: At global scope:
user.cpp:86:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
user.cpp: In function ‘int main()’:
user.cpp:90:32: error: ‘sort’ was not declared in this scope
sort(a.begin(),a.end(),comp);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !