Borderou de evaluare (job #1836425)
Utilizator | Data | 28 decembrie 2016 12:59:53 | |
---|---|---|---|
Problema | Subsir crescator maximal | 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 fout("scmax.out")
^
user.cpp:7:10: error: ‘MAX_N’ was not declared in this scope
int N, a[MAX_N], indice[MAX_N], indice_anterior[MAX_N], solutie[MAX_N];
^
user.cpp:7:25: error: ‘MAX_N’ was not declared in this scope
int N, a[MAX_N], indice[MAX_N], indice_anterior[MAX_N], solutie[MAX_N];
^
user.cpp:7:49: error: ‘MAX_N’ was not declared in this scope
int N, a[MAX_N], indice[MAX_N], indice_anterior[MAX_N], solutie[MAX_N];
^
user.cpp:7:65: error: ‘MAX_N’ was not declared in this scope
int N, a[MAX_N], indice[MAX_N], indice_anterior[MAX_N], solutie[MAX_N];
^
user.cpp: In function ‘void read_imput()’:
user.cpp:13:14: error: ‘a’ was not declared in this scope
fin>>a[i];
^
user.cpp: In function ‘int cauta_binar(int)’:
user.cpp:20:8: error: ‘a’ was not declared in this scope
if(a[i] > a[indice[mijloc])
^
user.cpp:20:17: error: ‘indice’ was not declared in this scope
if(a[i] > a[indice[mijloc])
^
user.cpp:20:31: error: expected ‘]’ before ‘)’ token
if(a[i] > a[indice[mijloc])
^
user.cpp:22:22: error: ‘n’ was not declared in this scope
else{stanga= n / 2 + 1;
^
user.cpp:23:9: error: ‘solutie’ was not declared in this scope
solutie = mijloc}
^
user.cpp:23:25: error: expected ‘;’ before ‘}’ token
solutie = mijloc}
^
user.cpp:17:31: warning: unused variable ‘sol’ [-Wunused-variable]
{int stanga = 1, dreapta = N, sol = 0;
^
user.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !