title: Could not find implicit value for parameter in scala
body: <pre><code>    def p1(c: Int)(implicit b: Int): Unit = {
          println(c + b)
      }
  
      def p2(a: Int, b: Int): Unit ={
          p1(a)
      }
  
      p2(5, 6) //result = 11
  </code></pre>
  
  <blockquote>
    <p><strong>error: could not find implicit value for parameter b: Int</strong></p>
  </blockquote>
  
  <p>how to fix problem but dont use this solution</p>
  
  <pre><code> def p2(a: Int, b: Int): Unit ={
          implicit val bb = b
          p1(a)
      }
  </code></pre>