Borderou de evaluare (job #1221695)
Utilizator | Data | 21 august 2014 11:20:30 | |
---|---|---|---|
Problema | Concurs | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:104:12: error: conflicting declaration ‘echipa x’
echipa x=v[1];
^
user.cpp:81:9: error: ‘x’ has a previous declaration as ‘int x’
int x,y;
^
user.cpp:107:14: error: cannot convert ‘echipa’ to ‘int’ in assignment
x=v[i];
^
user.cpp:109:13: error: request for member ‘val’ in ‘x’, which is of non-class type ‘int’
cout<<x.val<<' '<<x.a<<' '<<x.b<<endl;
^
user.cpp:109:25: error: request for member ‘a’ in ‘x’, which is of non-class type ‘int’
cout<<x.val<<' '<<x.a<<' '<<x.b<<endl;
^
user.cpp:109:35: error: request for member ‘b’ in ‘x’, which is of non-class type ‘int’
cout<<x.val<<' '<<x.a<<' '<<x.b<<endl;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !