Borderou de evaluare (job #2043788)
Utilizator | Data | 20 octombrie 2017 16:11:04 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool cmp(muchiee, muchiee)’:
user.cpp:17:12: error: ‘a’ was not declared in this scope
return a.z<b.z;
^
user.cpp:17:16: error: ‘b’ was not declared in this scope
return a.z<b.z;
^
user.cpp: In function ‘int main()’:
user.cpp:37:9: error: ‘i’ was not declared in this scope
for(i=1;i<=m;i++)
^
user.cpp:41:59: error: ‘unit’ was not declared in this scope
unit(parinte(muchie[i].x),parinte(muchie[i].y)));
^
user.cpp:41:60: error: expected ‘;’ before ‘)’ token
unit(parinte(muchie[i].x),parinte(muchie[i].y)));
^
user.cpp:42:13: error: ‘c’ was not declared in this scope
c=muchie[i].z+c;
^
user.cpp:43:13: error: ‘v’ was not declared in this scope
v.push_back({muchie[i].x,muchie[i].y)});
^
user.cpp:43:49: error: expected ‘}’ before ‘)’ token
v.push_back({muchie[i].x,muchie[i].y)});
^
user.cpp:43:50: error: expected ‘;’ before ‘}’ token
v.push_back({muchie[i].x,muchie[i].y)});
^
user.cpp:43:51: error: expected primary-expression before ‘)’ token
v.push_back({muchie[i].x,muchie[i].y)});
^
user.cpp:43:51: error: expected ‘;’ before ‘)’ token
user.cpp: At global scope:
user.cpp:46:5: error: ‘fout’ does not name a type
fout<<c<<'\n'<<v.size()<<'\n';
^
user.cpp:47:5: error: expected unqualified-id before ‘for’
for(i=0;i<v[i].size();i++)
^
user.cpp:47:13: error: ‘i’ does not name a type
for(i=0;i<v[i].size();i++)
^
user.cpp:47:27: error: ‘i’ does not name a type
for(i=0;i<v[i].size();i++)
^
user.cpp:49:5: error: expected unqualified-id before ‘return’
return 0;
^
user.cpp:50:1: error: expected declaration before ‘}’ token
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !