Borderou de evaluare (job #1779160)
| Utilizator | Data | 14 octombrie 2016 21:07:16 | |
|---|---|---|---|
| Problema | Lungimi de interval | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int suma(interval)’:
user.cpp:29:26: error: no match for ‘operator[]’ (operand types are ‘interval’ and ‘int’)
int lung = 0, inc = v[1].a, sf = v[1].b;
^
user.cpp:31:12: error: no match for ‘operator[]’ (operand types are ‘interval’ and ‘int’)
inc = v[1].a;
^
user.cpp:32:5: error: ‘sf’ was not declared in this scope
sf = v[1].b;
^
user.cpp:32:11: error: no match for ‘operator[]’ (operand types are ‘interval’ and ‘int’)
sf = v[1].b;
^
user.cpp:33:10: error: ‘i’ was not declared in this scope
for (i=2;i<=n;i++)
^
user.cpp:33:17: error: ‘n’ was not declared in this scope
for (i=2;i<=n;i++)
^
user.cpp:39:19: error: expected primary-expression before ‘=’ token
lung+ = sf-inc;
^
user.cpp:43:15: error: expected primary-expression before ‘=’ token
lung+ = sf-inc;
^
user.cpp: In function ‘int main()’:
user.cpp:58:19: error: could not convert ‘(interval*)(& v)’ from ‘interval*’ to ‘interval’
S = suma(v);
^
user.cpp:51:9: warning: unused variable ‘i’ [-Wunused-variable]
int i,j,t,n, S=0;
^
user.cpp:51:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,t,n, S=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
