language: Clojure (clojure 1.3)
date: 138 days 5 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public static int maxFind(int [] a, int length)
{
  if (length == 1){
          return a[0];
  }
 
  // recursively maxFind method on length-1
  int result = maxFind(a, length - 1);
 
  if (a[length - 1] > result)
    return a[length - 1];
  else
    return result;
 
}
 
  • upload with new input
  • result: Runtime error     time: 0.81s    memory: 214656 kB     signal: -1

    Exception in thread "main" java.lang.Exception: Unable to resolve symbol: public in this context (prog.clj:0)
    	at clojure.lang.Compiler.analyze(Compiler.java:4420)
    	at clojure.lang.Compiler.analyze(Compiler.java:4366)
    	at clojure.lang.Compiler.eval(Compiler.java:4646)
    	at clojure.lang.Compiler.load(Compiler.java:4972)
    	at clojure.lang.Compiler.loadFile(Compiler.java:4939)
    	at clojure.main$load_script__7405.invoke(main.clj:213)
    	at clojure.main$script_opt__7442.invoke(main.clj:265)
    	at clojure.main$main__7466.doInvoke(main.clj:346)
    	at clojure.lang.RestFn.invoke(RestFn.java:413)
    	at clojure.lang.Var.invoke(Var.java:359)
    	at clojure.lang.AFn.applyToHelper(AFn.java:173)
    	at clojure.lang.Var.applyTo(Var.java:476)
    	at clojure.main.main(main.java:37)
    Caused by: java.lang.Exception: Unable to resolve symbol: public in this context
    	at clojure.lang.Compiler.resolveIn(Compiler.java:4797)
    	at clojure.lang.Compiler.resolve(Compiler.java:4743)
    	at clojure.lang.Compiler.analyzeSymbol(Compiler.java:4720)
    	at clojure.lang.Compiler.analyze(Compiler.java:4387)
    	... 12 more