/in/foo.cc: In function 'std::string decimalToBinary(int)':
/in/foo.cc:4:9: error: 's' was not declared in this scope
4 | s="";
| ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:22: error: request for member 'size' in 'a', which is of non-class type 'int'
15 | if(a.size()==1)flag=false;
| ^~~~
/in/foo.cc:17:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for(int j=0;j<s.length();j++){
| ~^~~~~~~~~~~
/in/foo.cc:18:37: error: invalid types 'int[int]' for array subscript
18 | if(a[j-1]!=a[j]&&a[j+1]!=a[j]){
| ^
/in/foo.cc:18:45: error: invalid types 'int[int]' for array subscript
18 | if(a[j-1]!=a[j]&&a[j+1]!=a[j]){
| ^
/in/foo.cc:18:51: error: invalid types 'int[int]' for array subscript
18 | if(a[j-1]!=a[j]&&a[j+1]!=a[j]){
| ^
/in/foo.cc:18:59: error: invalid types 'int[int]' for array subscript
18 | if(a[j-1]!=a[j]&&a[j+1]!=a[j]){
| ^