Borderou de evaluare (job #1149185)
Utilizator | Data | 21 martie 2014 15:23:49 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:1: error: expected ‘,’ or ‘;’ before ‘ofstream’
ofstream out("ssm.out")
^
user.cpp: In function ‘int main()’:
user.cpp:10:6: error: ‘n’ was not declared in this scope
in>>n;
^
user.cpp:11:23: error: ‘v’ was not declared in this scope
for(i=1;i<=n;i++)in>>v[i];
^
user.cpp:12:31: error: ‘v’ was not declared in this scope
for(i=1;i<=n;i++)s[i]=s[i-1]+v[i];
^
user.cpp:22:3: error: ‘out’ was not declared in this scope
out<<smax<<" "<<start<<" "<<end;
^
user.cpp:9:10: warning: unused variable ‘k’ [-Wunused-variable]
int i,j,k,sc,smax=INT_MIN,start,end;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !