Record Detail

Compile Error

/in/ex4.cpp:2:18: error: extra tokens at end of #include directive [-Werror]
 #include <string>]
                  ^
/in/ex4.cpp: In function 'int main()':
/in/ex4.cpp:31:30: error: ISO C++ forbids variable length array 'blocks' [-Werror=vla]
     Block blocks[width*length];
                              ^
/in/ex4.cpp:25:9: error: unused variable 'ptr' [-Werror=unused-variable]
     int ptr=0;
         ^~~
/in/ex4.cpp:31:11: error: variable 'blocks' set but not used [-Werror=unused-but-set-variable]
     Block blocks[width*length];
           ^~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Language
C++
Submit At
2022-08-04 12:45:17
Judged At
2022-08-04 12:45:17
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes