Problem milkweed
User Ush
Submission Time 2023-11-16 09:22:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp: In function ‘int32_t main()’:
milkweed.cpp:24:13: error: conflicting declaration ‘std::queue<long long int> q’
24 | queue<int> q;
| ^
milkweed.cpp:23:27: note: previous declaration as ‘std::queue<std::pair<long long int, long long int> > q’
23 | queue<pair<int, int>> q;
| ^
milkweed.cpp:25:1: error: ‘visited’ was not declared in this scope
25 | visited[s] = 1;
| ^~~~~~~
milkweed.cpp:25:9: error: ‘s’ was not declared in this scope
25 | visited[s] = 1;
| ^
milkweed.cpp:28:17: 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
28 | int v = q.front(); q.pop();
| ~~~~~~~^