prog.cpp: In function 'school* locale(school*, int)':
prog.cpp:22:10: error: reference to 'locale' is ambiguous
return locale(NCT->p_left, key);
^
prog.cpp:15:9: note: candidates are: school* locale(school*, int)
school *locale(school *NCT, int key)
^
In file included from /usr/include/c++/5/bits/ios_base.h:41:0,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from prog.cpp:1:
/usr/include/c++/5/bits/locale_classes.h:62:9: note: class std::locale
class locale
^
prog.cpp:29:10: error: reference to 'locale' is ambiguous
return locale(NCT->p_right,key);
^
prog.cpp:15:9: note: candidates are: school* locale(school*, int)
school *locale(school *NCT, int key)
^
In file included from /usr/include/c++/5/bits/ios_base.h:41:0,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from prog.cpp:1:
/usr/include/c++/5/bits/locale_classes.h:62:9: note: class std::locale
class locale
^
prog.cpp: In function 'void generate(school*, int)':
prog.cpp:49:17: error: reference to 'locale' is ambiguous
school *site = locale(NCT, key);
^
prog.cpp:15:9: note: candidates are: school* locale(school*, int)
school *locale(school *NCT, int key)
^
In file included from /usr/include/c++/5/bits/ios_base.h:41:0,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from prog.cpp:1:
/usr/include/c++/5/bits/locale_classes.h:62:9: note: class std::locale
class locale
^
prog.cpp: At global scope:
prog.cpp:54:26: error: ISO C++ forbids declaration of 'sortschoolout' with no type [-fpermissive]
sortschoolout(school *NCT)
^