Borderou de evaluare (job #2643129)
Utilizator | Data | 18 august 2020 19:54:26 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void cautare()':
main.cpp:14:12: error: 'p' was not declared in this scope
while (p <= q) {
^
main.cpp:14:17: error: 'q' was not declared in this scope
while (p <= q) {
^
main.cpp:15:16: error: 's' was not declared in this scope
mij = (s + d) / 2;
^
main.cpp:15:20: error: 'd' was not declared in this scope
mij = (s + d) / 2;
^
main.cpp:16:13: error: 'a' was not declared in this scope
if (a[mij] == x)
^
main.cpp: In function 'int main()':
main.cpp:29:14: error: 'a' was not declared in this scope
f >> a[i];
^
main.cpp:34:22: error: too many arguments to function 'void cautare()'
cautare(x);
^
main.cpp:11:6: note: declared here
void cautare() {
^~~~~~~
main.cpp:35:17: error: 'a' was not declared in this scope
if (a[mij] == x) {
^
main.cpp:44:22: error: too many arguments to function 'void cautare()'
cautare(x);
^
main.cpp:11:6: note: declared here
void cautare() {
^~~~~~~
main.cpp:45:17: error: 'a' was not declared in this scope
if (a[mij] == x) {
^
main.cpp:53:22: error: too many arguments to function 'void cautare()'
cautare(x);
^
main.cpp:11:6: note: declared here
void cautare() {
^~~~~~~
main.cpp:54:17: error: 'a' was not declared in this scope
if (a[mij] == x) {
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !