Borderou de evaluare (job #3197855)
Utilizator | Data | 27 ianuarie 2024 16:09:57 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: expected initializer before 'int'
7 | int best[100003]
| ^~~
main.cpp: In function 'void afis(int)':
main.cpp:12:8: error: 'p' was not declared in this scope
12 | if (p[pozi]>0){
| ^
main.cpp:14:10: error: 'v' was not declared in this scope
14 | cou<<v[pozi]<<" ";
| ^
main.cpp: In function 'int caut(int)':
main.cpp:23:11: error: 'v' was not declared in this scope
23 | if (v[L[m]]<x&&v[L[m+1]]>=x){
| ^
main.cpp:23:13: error: 'L' was not declared in this scope
23 | if (v[L[m]]<x&&v[L[m+1]]>=x){
| ^
main.cpp: In function 'int main()':
main.cpp:45:12: error: 'v' was not declared in this scope
45 | ci>>v[i];
| ^
main.cpp:47:4: error: 'best' was not declared in this scope
47 | best[1]=L[1]=1;
| ^~~~
main.cpp:47:12: error: 'L' was not declared in this scope
47 | best[1]=L[1]=1;
| ^
main.cpp:50:16: error: 'v' was not declared in this scope
50 | poz=caut(v[i]);
| ^
main.cpp:51:7: error: 'p' was not declared in this scope
51 | p[i]=L[poz];
| ^
main.cpp:41:10: warning: unused variable 'j' [-Wunused-variable]
41 | int i,j,poz;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !