Bash |
1
2
3
4
5
6
7
| $ g++ -c main.cpp -o m.o
$ g++ -o pro m.o
$ ./pro
Enter a string:fjjfks dskms smfs
Got this word:fjjfks
Got this word:dskms
Got this word:smfs |
|
У меня нет ни одной ошибки.
http://hashcode.ru/questions/26196/c...-may-be-unsafe
Я так понял, что это предупреждение (warning), а не ошибка в вашем компиляторе.