Borderou de evaluare (job #2659665)
Utilizator | Data | 17 octombrie 2020 11:54:08 | |
---|---|---|---|
Problema | Infasuratoare convexa | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int det(punct, punct, punct)':
main.cpp:37:17: error: request for member 'x' in 'a', which is of non-class type 'punct [120005]'
return (b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y);
^
main.cpp:37:31: error: request for member 'y' in 'a', which is of non-class type 'punct [120005]'
return (b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y);
^
main.cpp:37:45: error: request for member 'x' in 'a', which is of non-class type 'punct [120005]'
return (b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y);
^
main.cpp:37:59: error: request for member 'y' in 'a', which is of non-class type 'punct [120005]'
return (b.x - a.x) * (c.y - a.y) - (c.x - a.x) * (b.y - a.y);
^
main.cpp: In function 'void solve1()':
main.cpp:46:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(rez1.size() > 1 && det(rez1[rez1.size() - 2],rez1[rez1.size() - 1], a[i]) <= 0)
^~~~~
main.cpp:48:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
rez1.push_back(a[i]);
^~~~
main.cpp: In function 'void afisare()':
main.cpp:66:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0; i < rez1.size() - 1 ;i++)
~~^~~~~~~~~~~~~~~~~
main.cpp:66:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for( int i = 0; i < rez1.size() - 1 ;i++)
^~~
main.cpp:68:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for( int i = 0; i <= rez2.size() - 2 ;i++)
^~~
main.cpp:68:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0; i <= rez2.size() - 2 ;i++)
~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'bool cmp(punct, punct)':
main.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !