I tried fixing these errors but to no avail. Can someone please explain to me what I need to do to fix them?
#include <iostream>
using namespace std;
int main()
int arr_3d[4][3] = {{1},
{1, 2},
{1, 2, 3},
{1, 2, 3, 4}};
int row, col;
for (row = 0; row < 4; ++row)
{
cout << endl;
for (col = 0; row < 3; ++col)
cout << setw(3) << arr_3d[row][col];
}
return 0;
}
ERRORS
1>------ Build started: Project: TempConverter7.cpp, Configuration: Debug Win32 ------
1> TempConverter7.cpp.cpp
1>c:\users\mjlhr\documents\visual studio 2010\projects\tempconverter7.cpp\tempconverter7.cpp\tempconverter7.cpp.cpp(4): error C2015: too many characters in constant
1>c:\users\mjlhr\documents\visual studio 2010\projects\tempconverter7.cpp\tempconverter7.cpp\tempconverter7.cpp.cpp(4): error C2006: '#include' : expected a filename, found 'constant'
1>c:\users\mjlhr\documents\visual studio 2010\projects\tempconverter7.cpp\tempconverter7.cpp\tempconverter7.cpp.cpp(4): fatal error C1083: Cannot open include file: '': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========