Record Detail

Compile Error

/in/ex3.cpp:10:27: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
    int arr1[500][500] = {0}, arr2[500][500] = {0}, temp[25000] = {0}, num = 0, size = 0;
                          ^
                          {}
/in/ex3.cpp:10:49: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
    int arr1[500][500] = {0}, arr2[500][500] = {0}, temp[25000] = {0}, num = 0, size = 0;
                                                ^
                                                {}
/in/ex3.cpp:15:15: error: implicit conversion turns floating-point number into integer: 'typename __gnu_cxx::__enable_if<__is_integer<int>::__value, double>::__type' (aka 'double') to 'int' [-Werror,-Wfloat-conversion]
    int len = sqrt(size/2);
        ~~~   ^~~~~~~~~~~~
3 errors generated.

Information

Submit By
Type
Submission
Homework
Homework 7
Language
C++ (Clang++, with memory check)
Submit At
2022-11-27 03:29:32
Judged At
2022-11-27 03:29:32
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes