Submission #10123

#TimeUsernameProblemLanguageResultExecution timeMemory
10123lavataste0 = not cute / 1 = cute (kriii1_0)C11
Compilation error
0 ms0 KiB
#include<stdio.h> int main() { float N; int a, i, sum; sum=0; scanf("%f", &N); for(i=1; i<N; i++) { scanf("%d", &a); sum+=a; a=0; } N=N/2 if(sum>N) printf("Junhee is cute!"); else printf("Junhee is not cute!"); return 0; }

Compilation message (stderr)

0.c: In function 'main':
0.c:15:3: error: expected ';' before 'if'
0.c:16:3: error: 'else' without a previous 'if'
0.c:7:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
0.c:10:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]