Borderou de evaluare (job #725396)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Căutare binară | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 2 iul. 2023 14:38:12 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:27: error: expected initializer before 'N'
7 | int a[100], b[100000] N, i, j, M, x, st, dr, mijl, aux;
| ^
main.cpp:8:10: error: 'N' was not declared in this scope
8 | fin>>N;
| ^
main.cpp:9:9: error: 'i' was not declared in this scope
9 | for(i=0; i<N; i++){
| ^
main.cpp:12:10: error: 'M' was not declared in this scope
12 | fin>>M;
| ^
main.cpp:13:9: error: 'i' was not declared in this scope
13 | for(i=1; i<=M; i++){
| ^
main.cpp:14:14: error: 'j' was not declared in this scope
14 | fin>>j;
| ^
main.cpp:15:14: error: 'x' was not declared in this scope
15 | fin>>x;
| ^
main.cpp:16:9: error: 'b' was not declared in this scope
16 | b[j]=x;
| ^
main.cpp:17:9: error: 'st' was not declared in this scope; did you mean 'std'?
17 | st=0;
| ^~
| std
main.cpp:18:9: error: 'dr' was not declared in this scope
18 | dr=N;
| ^~
main.cpp:19:9: error: 'aux' was not declared in this scope
19 | aux=0;
| ^~~
main.cpp:22:17: error: 'mijl' was not declared in this scope
22 | mijl=(st+dr)/2;
| ^~~~
main.cpp:38:17: error: 'mijl' was not declared in this scope
38 | mijl=(st+dr)/2;
| ^~~~
main.cpp:51:17: error: 'mijl' was not declared in this scope
51 | mijl=(st+dr)/2;
| ^~~~