QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#724655 | #7878. Matrix Distances | ZhangYiDe | Compile Error | / | / | C++14 | 22.6kb | 2024-11-08 14:17:40 | 2024-11-08 14:17:41 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:27:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 27 | for(auto [x,y]:mp) | ^ answer.code:37:14: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 37 | if(i+10 < y.size(); i+10 < j-10 && j-10 >=0 && j-10 > i+10) | ^ answer.code:40:26: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 40 | ll v2 = y[i+1]; | ^ answer.code:41:26: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 41 | ll v3 = y[i+2]; | ^ answer.code:42:26: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 42 | ll v4 = y[i+3]; | ^ answer.code:43:26: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 43 | ll v5 = y[i+4]; | ^ answer.code:44:26: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 44 | ll v6 = y[i+5]; | ^ answer.code:45:26: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 45 | ll v7 = y[i+6]; | ^ answer.code:46:26: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 46 | ll v8 = y[i+7]; | ^ answer.code:47:26: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 47 | ll v9 = y[i+8]; | ^ answer.code:48:27: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 48 | ll v10 = y[i+9]; | ^ answer.code:49:28: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} to ‘long long int’ in initialization 49 | ll v11 = y[i+10]; | ^ answer.code:53:37: error: request for member ‘first’ in ‘v2’, which is of non-class type ‘long long int’ 53 | cal_x = (cap.first - v2.first); | ^~~~~ answer.code:54:38: error: request for member ‘second’ in ‘v2’, which is of non-class type ‘long long int’ 54 | cal_y = (cap.second - v2.second); | ^~~~~~ answer.code:56:39: error: request for member ‘first’ in ‘v3’, which is of non-class type ‘long long int’ 56 | cal_x = (cap.first - v3.first); | ^~~~~ answer.code:57:38: error: request for member ‘second’ in ‘v3’, which is of non-class type ‘long long int’ 57 | cal_y = (cap.second - v3.second); | ^~~~~~ answer.code:59:39: error: request for member ‘first’ in ‘v4’, which is of non-class type ‘long long int’ 59 | cal_x = (cap.first - v4.first); | ^~~~~ answer.code:60:38: error: request for member ‘second’ in ‘v4’, which is of non-class type ‘long long int’ 60 | ...