Borderou de evaluare (job #2076877)
Utilizator | Data | 27 noiembrie 2017 12:17:26 | |
---|---|---|---|
Problema | Teams | 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:6:10: error: ‘n’ was not declared in this scope
fin>>n>>a>>b;
^
user.cpp:6:13: error: ‘a’ was not declared in this scope
fin>>n>>a>>b;
^
user.cpp:6:16: error: ‘b’ was not declared in this scope
fin>>n>>a>>b;
^
user.cpp:7:9: error: ‘i’ was not declared in this scope
for(i=1;i<=n;i++)
^
user.cpp:8:14: error: ‘v’ was not declared in this scope
fin>>v[i];
^
user.cpp:9:10: error: ‘v’ was not declared in this scope
sort(v+1,v+n+1);
^
user.cpp:9:19: error: ‘sort’ was not declared in this scope
sort(v+1,v+n+1);
^
user.cpp:10:9: error: ‘i’ was not declared in this scope
for(i=1;i<=n;i++){
^
user.cpp:11:9: error: ‘x’ was not declared in this scope
x=v[i];
^
user.cpp:12:9: error: ‘p’ was not declared in this scope
p=1;
^
user.cpp:13:9: error: ‘u’ was not declared in this scope
u=n;
^
user.cpp:15:13: error: ‘mid’ was not declared in this scope
mid=(p+u)/2;
^
user.cpp:23:9: error: ‘st’ was not declared in this scope
st=mid;
^
user.cpp:23:12: error: ‘mid’ was not declared in this scope
st=mid;
^
user.cpp:35:9: error: ‘dr’ was not declared in this scope
dr=mid;
^
user.cpp:36:9: error: ‘s’ was not declared in this scope
s+=st-dr;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !