felixhao28 / JSCPP

A simple C++ interpreter written in JavaScript

Home Page:https://felixhao28.github.io/JSCPP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on matrix initialization

rodrigorgs opened this issue · comments

Consider the following code:

int main() {
    int matrix[2][2] = {{1, 2}, {3, 4}};
    return 0;
}

I should init the matrix with the values 1, 2, 3, and 4; however, the following error is issued: 2:5 dimensions do not agree, 2 != 2

Indeed. It is now fixed on master branch.