Submission #10119

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

Compilation message (stderr)

0.c: In function 'main':
0.c:7:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
0.c:7:21: error: expected ';' before ')' token
0.c:6:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
0.c:9:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]