/in/foo.cc: In function 'void add(char*)':
/in/foo.cc:10:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < strlen(s);i++)
~~^~~~~~~~~~~
/in/foo.cc: In function 'double getnum(char*)':
/in/foo.cc:28:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < strlen(s);i++)
~~^~~~~~~~~~~
/tmp/ccLpQjYP.o: In function `add(char*)':
foo.cc:(.text+0x47): relocation truncated to fit: R_X86_64_PC32 against symbol `sz' defined in .bss section in /tmp/ccLpQjYP.o
foo.cc:(.text+0x50): relocation truncated to fit: R_X86_64_PC32 against symbol `sz' defined in .bss section in /tmp/ccLpQjYP.o
/tmp/ccLpQjYP.o: In function `main':
foo.cc:(.text.startup+0xf): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccLpQjYP.o
foo.cc:(.text.startup+0x1f): relocation truncated to fit: R_X86_64_PC32 against symbol `ss' defined in .bss section in /tmp/ccLpQjYP.o
foo.cc:(.text.startup+0x26): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccLpQjYP.o
foo.cc:(.text.startup+0x3a): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccLpQjYP.o
foo.cc:(.text.startup+0x45): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccLpQjYP.o
foo.cc:(.text.startup+0x6b): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccLpQjYP.o
foo.cc:(.text.startup+0x76): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccLpQjYP.o
foo.cc:(.text.startup+0x7f): relocation truncated to fit: R_X86_64_PC32 against symbol `ss' defined in .bss section in /tmp/ccLpQjYP.o
foo.cc:(.text.startup+0x8b): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status