Problem splithunny
User justin271828
Submission Time 2024-06-18 13:13:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int main()’:
splithunny.cpp:16:10: error: overloaded function with no contextual type information
16 | count = 0;
| ^
splithunny.cpp:18:28: error: conversion from ‘int’ to non-scalar type ‘std::queue<std::pair<int, int> >’ requested
18 | queue<pair<int, int>> q = 0;
| ^
splithunny.cpp:22:10: error: no post-increment operator for type
22 | count++;
| ^~
splithunny.cpp:44:35: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘<unresolved overloaded function type>’)
44 | cout << "Oh, bother. There are " << count << " pools of honey.";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,