You are currently viewing Just installed today, and I can’t compile anything with arithmetic otherwise it won’t compile

Just installed today, and I can’t compile anything with arithmetic otherwise it won’t compile

So I’m very new and just trying Hello World and basic arithmetic but I have no idea what is going on or why it won’t compile. When I just have a println and no numbers involved, it works fine, but once I try doing any math, it breaks. I just copied and pasted from here and compiled with kotlinc First.kt -include-runtime -d output.jar. The error I’m getting is ERROR: Exception while analyzing expression at (6,15). when I run kotlin -version in terminal, I get no build.txt was found at home=/usr/share/kotlin/kotlinc. Kotlin is installed through terminal and in vscode, so I’m just completely lost

submitted by /u/aconfused_lemon
[link] [comments]