質問編集履歴
1
エラー内容を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -57,3 +57,73 @@
|
|
57
57
|
return 0;
|
58
58
|
|
59
59
|
}
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
エラー内容 visual studioでやっています
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
1>------ ビルド開始: プロジェクト: tansaku, 構成: Debug Win32 ------
|
68
|
+
|
69
|
+
1> tansaku.cpp
|
70
|
+
|
71
|
+
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xmemory(48): error C2075: 'Target of operator new()' : 配列の初期化には中かっこ ({}) が必要です。
|
72
|
+
|
73
|
+
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xmemory(197) : コンパイルされたクラスの テンプレート のインスタンス化 'void std::_Construct<int[9],const int(&)[9]>(_Ty1 (*),_Ty2)' の参照を確認してください
|
74
|
+
|
75
|
+
1> with
|
76
|
+
|
77
|
+
1> [
|
78
|
+
|
79
|
+
1> _Ty1=int [9],
|
80
|
+
|
81
|
+
1> _Ty2=const int (&)[9]
|
82
|
+
|
83
|
+
1> ]
|
84
|
+
|
85
|
+
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xmemory(196): クラス テンプレート のメンバー関数 'void std::allocator<_Ty>::construct(int (*)[9],const _Ty (&))' のコンパイル中
|
86
|
+
|
87
|
+
1> with
|
88
|
+
|
89
|
+
1> [
|
90
|
+
|
91
|
+
1> _Ty=int [9]
|
92
|
+
|
93
|
+
1> ]
|
94
|
+
|
95
|
+
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\deque(721) : コンパイルされたクラスの テンプレート のインスタンス化 'std::allocator<_Ty>' の参照を確認してください
|
96
|
+
|
97
|
+
1> with
|
98
|
+
|
99
|
+
1> [
|
100
|
+
|
101
|
+
1> _Ty=int [9]
|
102
|
+
|
103
|
+
1> ]
|
104
|
+
|
105
|
+
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\deque(773) : コンパイルされたクラスの テンプレート のインスタンス化 'std::_Deque_val<_Ty,_Alloc>' の参照を確認してください
|
106
|
+
|
107
|
+
1> with
|
108
|
+
|
109
|
+
1> [
|
110
|
+
|
111
|
+
1> _Ty=int [9],
|
112
|
+
|
113
|
+
1> _Alloc=std::allocator<int [9]>
|
114
|
+
|
115
|
+
1> ]
|
116
|
+
|
117
|
+
1> z:\visual studio 2010\projects\tansaku\tansaku\tansaku.cpp(12) : コンパイルされたクラスの テンプレート のインスタンス化 'std::deque<_Ty>' の参照を確認してください
|
118
|
+
|
119
|
+
1> with
|
120
|
+
|
121
|
+
1> [
|
122
|
+
|
123
|
+
1> _Ty=int [9]
|
124
|
+
|
125
|
+
1> ]
|
126
|
+
|
127
|
+
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xmemory(48): fatal error C1903: 直前のエラーを修復できません。コンパイルを中止します。
|
128
|
+
|
129
|
+
========== ビルド: 0 正常終了、1 失敗、0 更新不要、0 スキップ ==========
|