回答編集履歴

1

.

2022/11/07 22:29

投稿

int32_t
int32_t

スコア20909

test CHANGED
@@ -1,6 +1,6 @@
1
1
  > error: return-statement with a value, in function returning ‘void’ [-fpermissive]
2
2
 
3
- `void` (戻り値がない) のに `return` で値を返しているよ、というエラーです。
3
+ `void` (戻り値がない) と宣言されているのに `return` で値を返しているよ、というエラーです。
4
4
  `oj::create_svlist()` の戻り値の型 `void` を返したい値の型(`vtp*`?)に変更しましょう。B.cpp と B.h の両方で変更する必要があります。
5
5
 
6
6