Borderou de evaluare (job #1479815)
Utilizator | Data | 1 septembrie 2015 13:44:34 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:9: error: expected ‘]’ before numeric constant
int v[6 000 001],n;
^
user.cpp: In function ‘void ssm()’:
user.cpp:12:13: error: ‘n’ was not declared in this scope
int sum[n] , minSum = 0 ,maxSum = v[0] ,lIndex = 1,rIndex = 1 ,auxSum,aux_lIndex = 1;
^
user.cpp:12:39: error: ‘v’ was not declared in this scope
int sum[n] , minSum = 0 ,maxSum = v[0] ,lIndex = 1,rIndex = 1 ,auxSum,aux_lIndex = 1;
^
user.cpp:17:12: error: ‘sum’ was not declared in this scope
if(sum[i-1] < minSum)
^
user.cpp:20:13: error: ‘aux_lIndex’ was not declared in this scope
aux_lIndex = i+1;
^
user.cpp:23:9: error: ‘sum’ was not declared in this scope
sum[i] = sum[i-1] + v[i];
^
user.cpp:25:9: error: ‘auxSum’ was not declared in this scope
auxSum = sum[i] - minSum;
^
user.cpp:30:13: error: ‘rIndex’ was not declared in this scope
rIndex = i + 1;
^
user.cpp:31:13: error: ‘lIndex’ was not declared in this scope
lIndex = aux_lIndex;
^
user.cpp:31:22: error: ‘aux_lIndex’ was not declared in this scope
lIndex = aux_lIndex;
^
user.cpp:36:21: error: ‘lIndex’ was not declared in this scope
g<<maxSum<<" "<<lIndex<<" "<<rIndex;
^
user.cpp:36:34: error: ‘rIndex’ was not declared in this scope
g<<maxSum<<" "<<lIndex<<" "<<rIndex;
^
user.cpp: In function ‘int main()’:
user.cpp:40:8: error: ‘n’ was not declared in this scope
f>>n;
^
user.cpp:42:12: error: ‘v’ was not declared in this scope
f>>v[i];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !