제출 #392820

#제출 시각아이디문제언어결과실행 시간메모리
392820rainboy마라톤 경주 (COCI14_utrka)C11
80 / 80
30 ms2508 KiB
#include <stdio.h> #include <string.h> int main() { static char cc[32]; int n; scanf("%d", &n), n = n * 2 - 1; while (n--) { static char aa[32]; int l, h; scanf("%s", aa), l = strlen(aa); for (h = 0; h < l; h++) cc[h] ^= aa[h]; } printf("%s\n", cc); return 0; }

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

utrka.c: In function 'main':
utrka.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%d", &n), n = n * 2 - 1;
      |  ^~~~~~~~~~~~~~~
utrka.c:13:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   13 |   scanf("%s", aa), l = strlen(aa);
      |   ^~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...