제출 #165251

#제출 시각아이디문제언어결과실행 시간메모리
165251piyushkumarArranging Shoes (IOI19_shoes)Java
컴파일 에러
0 ms0 KiB
class Codechef { public static long count_swaps(int[] n) { long c=0; for (int i=0;i<n.length;i+=2){ int j=0; for (j=i;j<n.length;j++){ if(n[j]<0) break; } while (j>i){ int d=n[j-1]; n[j-1]=n[j]; n[j]=d; c++; j--; } int x=-n[i]; for (j=i+1;j<n.length;j++){ if(n[j]==x) break;; } while (j>i+1){ int d=n[j-1]; n[j-1]=n[j]; n[j]=d; c++; j--; } } return c; } }

컴파일 시 표준 에러 (stderr) 메시지

grader.java:22: error: cannot find symbol
		shoes solver = new shoes();
		^
  symbol:   class shoes
  location: class grader
grader.java:22: error: cannot find symbol
		shoes solver = new shoes();
		                   ^
  symbol:   class shoes
  location: class grader
2 errors