Record Detail

Compile Error

/in/ex4.cpp: In function 'int main()':
/in/ex4.cpp:17:26: error: ISO C++ forbids variable length array 'pond' [-Werror=vla]
     vector<int> pond[l][w];
                          ^
/in/ex4.cpp:17:26: error: ISO C++ forbids variable length array 'pond' [-Werror=vla]
/in/ex4.cpp:21:33: error: lvalue required as left operand of assignment
             pond[i] + j = (int) a;
                                 ^
/in/ex4.cpp:27:16: error: expected '(' before 'pond'
             if pond[i][j] == 3
                ^~~~
/in/ex4.cpp:32:13: error: 'idx' was not declared in this scope
     cout << idx << endl;
             ^~~
/in/ex4.cpp:32:13: note: suggested alternative: 'id_t'
     cout << idx << endl;
             ^~~
             id_t
cc1plus: all warnings being treated as errors

Information

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