컴파일 에러가 뜨는 따로 경고 표시된곳은 없습니다. 그런데 밑에 해석을 못해가지고그러는데 해석 한번만 부탁드릴게요 ㅜ
Main.cc: In function ‘void init()’:
Main.cc:38:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
Main.cc:41:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %c", &map[i][j]);
^
/tmp/ccCWOgwv.o: In function `init()':
Main.cc:(.text+0xad): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
Main.cc:(.text+0xb3): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
Main.cc:(.text+0xcf): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
Main.cc:(.text+0xd5): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
Main.cc:(.text+0xeb): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
Main.cc:(.text+0xf1): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
/tmp/ccCWOgwv.o: In function `solve()':
Main.cc:(.text+0x354): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
Main.cc:(.text+0x35b): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
Main.cc:(.text+0x36c): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
Main.cc:(.text+0x373): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccCWOgwv.o
Main.cc:(.text+0x37a): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
didwlvv 7년 전
컴파일 에러가 뜨는 따로 경고 표시된곳은 없습니다. 그런데 밑에 해석을 못해가지고그러는데 해석 한번만 부탁드릴게요 ㅜ