Submission #2261

# Submission time Handle Problem Language Result Execution time Memory
2261 2013-07-21T00:26:24 Z sebin 그릇 (KOI13_bowl) C++
Compilation error
0 ms 0 KB
#include<stdio.h>
#include<string.h>
int main()
{
  	char d[51];
  	int i,sum=0;
    scanf("%s",d);
 	for(i=0;i<strlen(d);i++){
      	sum+=d[j]!=d[i];
      	sum+=1;
    }
  	printf("%d\n",sum*5);
  	return 0;
}

Compilation message

aa.cpp: In function 'int main()':
aa.cpp:8: warning: comparison between signed and unsigned integer expressions
aa.cpp:9: error: 'j' was not declared in this scope