Borderou de evaluare (job #788797)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Selecţie (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 30 sept. 2024 19:22:47 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:11: error: overloaded function with no contextual type information
15 | begin=0;
| ^
main.cpp:16:11: error: overloaded function with no contextual type information
16 | end=n-1;
| ^
main.cpp:17:12: error: parse error in template argument list
17 | while (begin<end)
| ^~~~~~~~~
main.cpp:17:12: error: cannot resolve overloaded function 'begin' based on conversion to type 'bool'
main.cpp:19:11: error: 'v' was not declared in this scope
19 | p=v[(begin+end)/2];
| ^
main.cpp:19:19: error: invalid operands of types '<unresolved overloaded function type>' and '<unresolved overloaded function type>' to binary 'operator+'
19 | p=v[(begin+end)/2];
| ~~~~~^~~~
main.cpp:20:9: error: 'b' was not declared in this scope
20 | b=begin;
| ^
main.cpp:21:9: error: 'e' was not declared in this scope
21 | e=end;
| ^
main.cpp:28:13: error: 'aux' was not declared in this scope
28 | aux=v[b];
| ^~~