prog.cpp: In function ‘bool wprzedziale(const std::pair<int, int>&, int)’:
prog.cpp:8:7: error: ‘y’ was not declared in this scope
y < przedzial.second);
^
prog.cpp: In function ‘int rekurencjyne(const std::vector<std::pair<int, int> >&, int, int, int)’:
prog.cpp:14:6: error: expected ‘)’ before ‘return’
return poczatek;
^
prog.cpp:17:6: error: expected ‘)’ before ‘return’
return koniec;
^
prog.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
prog.cpp: In function ‘int szukaj(const std::vector<std::pair<int, int> >&, int)’:
prog.cpp:24:34: error: expected primary-expression before ‘int’
return rekurencyjne(przedzialy, int szukana, 0, przedzialy.size() - 1);
^
prog.cpp:24:71: error: ‘rekurencyjne’ was not declared in this scope
return rekurencyjne(przedzialy, int szukana, 0, przedzialy.size() - 1);
^
prog.cpp: In function ‘int main()’:
prog.cpp:33:50: error: expected ‘)’ before ‘;’ token
przedzialy.push_back(std::make_pair(i, i+10);
^
prog.cpp:38:9: warning: unused variable ‘wynik’ [-Wunused-variable]
int wynik = szukaj(przedzialy, szukana);
^
prog.cpp: In function ‘bool wprzedziale(const std::pair<int, int>&, int)’:
prog.cpp:9:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.cpp: In function ‘int szukaj(const std::vector<std::pair<int, int> >&, int)’:
prog.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^