Jaagrav / CodeX-API

The new version of CodeX API with it's backend, a lot of you wanted me to make the backend opensource, now it's ready to receive contributions from you. Thanks for being patient, more languages coming soon, happy hacking!
https://codex.jaagrav.in/
MIT License
187 stars 64 forks source link

Some of the programs are not getting proper output. #49

Open itsabishiek opened 11 months ago

itsabishiek commented 11 months ago

I've tried many programs, only simple programs are getting executed, but programs like data structures, linkedlist, interfaces and many are not working.

Jaagrav commented 11 months ago

Can you please provide more details here, and the response you're getting + the expected response?

itsabishiek commented 11 months ago

Alright let me show you an example

interface printable{  
void print();  
}  
class A6 implements printable{  
public void print(){System.out.println("Hello");}  

public static void main(String args[]){  
A6 obj = new A6();  
obj.print();  
 }  
} 

The expected output is:

Hello

But I got here is error:

error: can't find main(String[]) method in class: printable

there are many problems are working in various languages

itsabishiek commented 11 months ago

But still this is not get executing though :(

Jaagrav commented 11 months ago

It won't the PR is still open 😅

I am trying to find a better way to fix this issue, the PR has what came first to my mind, but when I thought more about it, this PR will break things, will get back to you once I have an update!