Record Detail

Compile Error

/in/ex4.cpp: In function 'int main()':
/in/ex4.cpp:10:17: error: ISO C++ forbids variable length array 'matrix' [-Werror=vla]
  int matrix[n][m] = { 0 };
                 ^
/in/ex4.cpp:10:17: error: ISO C++ forbids variable length array 'matrix' [-Werror=vla]
/in/ex4.cpp:10:6: error: unused variable 'matrix' [-Werror=unused-variable]
  int matrix[n][m] = { 0 };
      ^~~~~~
/in/ex4.cpp:10:17: error: 'm' is used uninitialized in this function [-Werror=uninitialized]
  int matrix[n][m] = { 0 };
                 ^
/in/ex4.cpp:10:17: error: 'n' is used uninitialized in this function [-Werror=uninitialized]
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Final Exam
Language
C++
Submit At
2022-08-02 15:44:15
Judged At
2022-08-06 15:13:59
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes