Borderou de evaluare (job #2471134)
Utilizator | Data | 10 octombrie 2019 12:52:06 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:13: error: variable 'std::ifstream fin' has initializer but incomplete type
ifstream fin("scmax.in");
^
main.cpp:6:14: error: variable 'std::ofstream fout' has initializer but incomplete type
ofstream fout("scmax.out")
^
main.cpp:7:1: error: expected ',' or ';' before 'int'
int v[1000000];
^~~
main.cpp: In function 'int main()':
main.cpp:13:16: error: 'v' was not declared in this scope
fin >> v[i];
^
main.cpp:21:13: error: 'v' was not declared in this scope
if (v[i] >= v[i-1]) {
^
main.cpp:31:13: error: 'v' was not declared in this scope
if (v[i] < v[i-1] || i == n) {
^
main.cpp:45:13: error: 'v' was not declared in this scope
if (v[i] != v[i - 1])
^
main.cpp:17:12: warning: unused variable 'e' [-Wunused-variable]
int b, e;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !