prog.cpp:22:5: warning: character constant too long for its type
prog.cpp:7: error: ‘::main’ must return ‘int’
prog.cpp: In function ‘int main()’:
prog.cpp:9: error: ‘clrscr’ was not declared in this scope
prog.cpp:22: error: incompatible types in assignment of ‘int’ to ‘char [30]’
prog.cpp:23: error: ‘datos’ was not declared in this scope
prog.cpp:26: error: incompatible types in assignment of ‘const char [26]’ to ‘char [30]’
prog.cpp:30: error: incompatible types in assignment of ‘const char [26]’ to ‘char [30]’
prog.cpp:34: error: incompatible types in assignment of ‘const char [6]’ to ‘char [30]’
prog.cpp:38: error: incompatible types in assignment of ‘const char [16]’ to ‘char [30]’
prog.cpp:42: error: incompatible types in assignment of ‘const char [10]’ to ‘char [30]’
prog.cpp:50: error: ‘getch’ was not declared in this scope
prog.cpp:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
prog.cpp: In function ‘void datos()’:
prog.cpp:57: error: ‘clrscr’ was not declared in this scope
prog.cpp:58: warning: format ‘%s’ expects type ‘char*’, but argument 2 has type ‘char (*)[30]’
prog.cpp:59: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
prog.cpp:60: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
prog.cpp:61: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
prog.cpp:62: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
prog.cpp:63: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
prog.cpp:64: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result