Borderou de evaluare (job #3253877)

Utilizator contandrei3Andrei Mihai contandrei3 Data 5 noiembrie 2024 08:37:57
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: expected ',' or ';' before 'int' 6 | int n,m,v[100005],c,q,i,t,s; | ^~~ main.cpp: In function 'int main()': main.cpp:9:10: error: 'n' was not declared in this scope; did you mean 'yn'? 9 | fin>>n; | ^ | yn main.cpp:10:10: error: 'i' was not declared in this scope 10 | for (i=1;i<=n;i++) cin>>v[i]; | ^ main.cpp:10:29: error: 'v' was not declared in this scope 10 | for (i=1;i<=n;i++) cin>>v[i]; | ^ main.cpp:11:10: error: 'm' was not declared in this scope; did you mean 'tm'? 11 | fin>>m; | ^ | tm main.cpp:14:18: error: 'c' was not declared in this scope 14 | fin>>c>>q; | ^ main.cpp:14:21: error: 'q' was not declared in this scope 14 | fin>>c>>q; | ^ main.cpp:17:21: error: 't' was not declared in this scope; did you mean 'tm'? 17 | t=upper_bound(v+1,v+n+1,q)-v-1; | ^ | tm main.cpp:17:35: error: 'v' was not declared in this scope 17 | t=upper_bound(v+1,v+n+1,q)-v-1; | ^ main.cpp:23:21: error: 't' was not declared in this scope; did you mean 'tm'? 23 | t=upper_bound(v+1,v+n+1,q)-v-1; | ^ | tm main.cpp:23:35: error: 'v' was not declared in this scope 23 | t=upper_bound(v+1,v+n+1,q)-v-1; | ^ main.cpp:30:21: error: 't' was not declared in this scope; did you mean 'tm'? 30 | t=lower_bound(v+1,v+n+1,q)-v-1; | ^ | tm main.cpp:30:35: error: 'v' was not declared in this scope 30 | t=lower_bound(v+1,v+n+1,q)-v-1; | ^ Non zero exit status: 1

Ceva nu functioneaza?