제출 #98801

#제출 시각아이디문제언어결과실행 시간메모리
98801mjhmjh11040 = not cute / 1 = cute (kriii1_0)C11
1 / 1
3 ms384 KiB
#include <stdio.h> int main() { int n, c = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { int t; scanf("%d", &t); c += t ? 1 : -1; } printf("Junhee is "); if (c < 0) printf("not "); printf("cute!"); }

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

0.c: In function 'main':
0.c:5:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &n);
     ^~~~~~~~~~~~~~~
0.c:8:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", &t);
         ^~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...