Borderou de evaluare (job #3208942)
Utilizator | Data | 1 martie 2024 16:29:47 | |
---|---|---|---|
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 main()':
main.cpp:93:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Punct>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
93 | for(i=0;i<st.size();i++)
| ~^~~~~~~~~~
main.cpp:95:20: error: too few arguments to function 'std::ios_base& std::fixed(ios_base&)'
95 | fout<<fixed()<<setprecision(6)<<st[i].x<<" "<<st[i].y<<'\n';
| ~~~~~^~
In file included from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/ios_base.h:1080:3: note: declared here
1080 | fixed(ios_base& __base)
| ^~~~~
main.cpp:95:24: error: 'setprecision' was not declared in this scope
95 | fout<<fixed()<<setprecision(6)<<st[i].x<<" "<<st[i].y<<'\n';
| ^~~~~~~~~~~~
main.cpp:53:11: warning: unused variable 'j' [-Wunused-variable]
53 | int i,j,n,poz;
| ^
main.cpp: In function 'int cadran(Punct)':
main.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type]
29 | }
| ^
main.cpp: In function 'bool cmp(Punct, Punct)':
main.cpp:47:1: warning: control reaches end of non-void function [-Wreturn-type]
47 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !