Active debugger config: GDB/CDB debugger:Default Building to ensure sources are up-to-date Selecting target: Debug Adding source dir: E:\BC\Courses\Pablo_Methods\HW\Mendoza 2010 Replication\Lia Replication\ Adding source dir: E:\BC\Courses\Pablo_Methods\HW\Mendoza 2010 Replication\Lia Replication\ Adding file: E:\BC\Courses\Pablo_Methods\HW\Mendoza 2010 Replication\Lia Replication\bin\Debug\Lia_Replication.exe Changing directory to: "E:/BC/Courses/Pablo_Methods/HW/Mendoza 2010 Replication/Lia Replication/." Set variable: PATH=.;D:\Program Files (x86)\CodeBlocks\MinGW\bin;D:\Program Files (x86)\CodeBlocks\MinGW;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;D:\Program Files\MATLAB\R2016b\runtime\win64;D:\Program Files\MATLAB\R2016b\bin;D:\Program Files\MATLAB\R2015a\runtime\win64;D:\Program Files\MATLAB\R2015a\bin;D:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\Windows Live\Shared;D:\Program Files (x86)\Calibre2;D:\Program Files (x86)\MiKTeX 2.9\miktex\bin;D:\Program Files (x86)\LyX 2.2\Perl\bin;D:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\ProgramData\chocolatey\bin;D:\MinGW\bin Starting debugger: D:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args "E:/BC/Courses/Pablo_Methods/HW/Mendoza 2010 Replication/Lia Replication/bin/Debug/Lia_Replication.exe" done Registered new type: wxString Registered new type: STL String Registered new type: STL Vector Setting breakpoints Debugger name and version: GNU gdb (GDB) 7.6.1 Child process PID: 12780 Program received signal SIGSEGV, Segmentation fault. |
line 183 if(i=j)
// maybe you mean i == jline 409 if(templb>=0 & tempvb>=0)
maybe you mean &&line 524 if(jjk+jjb>=1|skip==0)
maybe you mean ||line547 else if(jjk+jjb==0&skip==1)
maybe you mean &&$ g++ main.cpp -ggdb -Wall -Wextra -Wpedantic -fsanitize=undefined main.cpp:378:33: warning: ‘binding’ may be used uninitialized in this function [-Wmaybe-uninitialized] |
$ ./a.out omega=1.8461 sigma=2 delta=0.0880044 beta=0.305367 a=2.75 main.cpp:297:21: runtime error: index 8 out of bounds for type 'double [8]' (sa) sa[m]=exp(Ashock[l])*abar; // state for TFP main.cpp:298:21: runtime error: index 8 out of bounds for type 'double [8]' (sr) sr[m]=exp(Rshock[i])*(1+rbar); // state for the interest rate main.cpp:299:29: runtime error: index 8 out of bounds for type 'double [8]' (qb) qb[m]=1/sr[m]; // state for bond prices main.cpp:299:21: runtime error: index 8 out of bounds for type 'double [8]' (sr) qb[m]=1/sr[m]; // state for bond prices main.cpp:300:21: runtime error: index 8 out of bounds for type 'double [8]' (sp) sp[m]=exp(Pshock[j])*pbar; // state for price of int'l goods main.cpp:343:28: runtime error: index 8 out of bounds for type 'int [8]' kzt[i][j][l]=-999999999; main.cpp:344:28: runtime error: index 8 out of bounds for type 'int [8]' kz2[i][j][l]=-999999999; con5=0 con=1 |
|
|
|
|
|
|
|
|
record_con << con << endl;
|
|
E:\BC\Courses\Pablo_Methods\HW\Mendoza 2010 Replication\Lia Replication\main.cpp|142|error: cannot convert 'double (*)[8][8]' to 'double***' in return| |
std::array
|
|