laugh.cpp: In function 'int longest_laugh(std::string)':
laugh.cpp:11:17: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
11 | if(s[i] == 'a' & s[i - 1] == 'h')
laugh.cpp:30:9: error: 'cout' was not declared in this scope
30 | cout << 0 ;
| ^~~~
laugh.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include "laugh.h"
+++ |+#include <iostream>
2 |
laugh.cpp:31:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
31 | return ;
| ^~~~~~
laugh.cpp:33:5: error: 'cout' was not declared in this scope
33 | cout << mx + 1 ;
| ^~~~
laugh.cpp:33:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
laugh.cpp:34:1: warning: control reaches end of non-void function [-Wreturn-type]
34 | }
| ^