Borderou de evaluare (job #2520661)
Utilizator | Data | 9 ianuarie 2020 16:54:37 | |
---|---|---|---|
Problema | Pluton | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:11: error: variable 'std::ifstream f' has initializer but incomplete type
ifstream f("pluton.in");
^
main.cpp:9:11: error: variable 'std::ofstream g' has initializer but incomplete type
ofstream g("pluton.out")
^
main.cpp:11:1: error: expected ',' or ';' before 'struct'
struct dogtag{
^~~~~~
main.cpp:13:2: error: 'v' does not name a type
}v[4005];
^
main.cpp: In function 'int sorttag(int, int)':
main.cpp:36:12: error: 'v' was not declared in this scope
return v[b].decodat = nrn;
^
main.cpp: In function 'int regrupare(int)':
main.cpp:41:12: error: 'v' was not declared in this scope
if(v[i].decodat == v[i+1].decodat){
^
main.cpp:60:13: error: 'v' was not declared in this scope
if (v[i].decodat == soldatplutonmax){
^
main.cpp:65:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: At global scope:
main.cpp:67:11: error: 'dogtag' was not declared in this scope
bool comp(dogtag x , dogtag y){
^~~~~~
main.cpp:67:22: error: 'dogtag' was not declared in this scope
bool comp(dogtag x , dogtag y){
^~~~~~
main.cpp:67:30: error: expression list treated as compound expression in initializer [-fpermissive]
bool comp(dogtag x , dogtag y){
^
main.cpp: In function 'int main()':
main.cpp:75:12: error: 'v' was not declared in this scope
f>>v[i].codat;
^
main.cpp:80:10: error: 'v' was not declared in this scope
sort(v, v+n, comp);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !