Borderou de evaluare (job #1736090)
Utilizator | Data | 1 august 2016 00:13:24 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int maximum_subarray(long int*, int)’:
user.cpp:9:19: error: ‘INT_MIN’ was not declared in this scope
int sum_max = INT_MIN, imin = 0, imax = 0;
^
user.cpp:13:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(size_t i = 0; i < n; i++)
^
user.cpp:32:13: error: ‘imax’ was not declared in this scope
imax = local_imax;
^
user.cpp:33:13: error: ‘imin’ was not declared in this scope
imin = local_imin;
^
user.cpp:39:28: error: ‘imin’ was not declared in this scope
g << sum_max << " " << imin + 1 << " " << imax + 1;
^
user.cpp:39:47: error: ‘imax’ was not declared in this scope
g << sum_max << " " << imin + 1 << " " << imax + 1;
^
user.cpp:40:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:51:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(size_t i = 0; i < n; i++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !