Language
C++
Compiler
gcc 11.1.0
Options
Warnings
Don't Use Boost
C++11
-pedantic
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
Enter the number to convert:
Signal:
Bus error
Author
anonymous
over 3 years ago
C++
gcc 11.1.0
Author
anonymous
over 3 years ago
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
prog.cc: In function 'int main()':
prog.cc:18:19: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
18 | for(i = i-1 ;i >= 0 ;i--) // "reassambles" items of <a> to binary
| ~~^~~~
Enter the number to convert: