페이지가 로드되지 않나요? 여기를 눌러보면 고쳐질 수도 있어요.
Placeholder

실시간 제출 현황

제출 현황

#12102122

0점 컴파일 에러
#1 컴파일 에러 0ms 0MB

변수나 함수가 선언되지 않았어요. 변수나 함수를 선언하고 사용하고 있는지 확인해 보세요. 혹은 이 스코프 바깥에서 선언된 변수나 함수를 사용하고 있지는 않나요?
Main.cpp: In function ‘int main()’:
Main.cpp:8:20: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
    8 |     int len=strlen(ch);
      |                    ^~
      |                    |
      |                    char
In file included from Main.cpp:2:
/usr/include/string.h:407:35: note: initializing argument 1 of ‘size_t strlen(const char*)’
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Main.cpp:10:15: error: invalid types ‘char[int]’ for array subscript
   10 |         if (ch[i]==' ') {
      |               ^
Main.cpp:11:13: error: ‘word’ was not declared in this scope; did you mean ‘words’?
   11 |             word[wcnt][wlen]='\0';
      |             ^~~~
      |             words
Main.cpp:16:13: error: ‘word’ was not declared in this scope; did you mean ‘words’?
   16 |             word[wnct][wlen]=ch[i];
      |             ^~~~
      |             words
Main.cpp:16:18: error: ‘wnct’ was not declared in this scope; did you mean ‘wcnt’?
   16 |             word[wnct][wlen]=ch[i];
      |                  ^~~~
      |                  wcnt
Main.cpp:16:32: error: invalid types ‘char[int]’ for array subscript
   16 |             word[wnct][wlen]=ch[i];
      |                                ^
Main.cpp:20:21: error: ‘word’ was not declared in this scope; did you mean ‘words’?
   20 |     int len1=strlen(word[0]);
      |                     ^~~~
      |                     words
Main.cpp:4:10: warning: unused variable ‘words’ [-Wunused-variable]
    4 |     char words[2][101];
      |          ^~~~~
Main.cpp:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |     scanf("%[^\r\n]",&ch);
      |     ~~~~~^~~~~~~~~~~~~~~~
번호 제출자 문제 결과 시간 메모리 길이 언어 시각
12154863
kbs3616991
#804
오답 4.2점 82ms 9.4MB 241BPython 3
15초 전
12154862 +4
kimms0117
#159
오답 30점 44ms 768KB 501BC++20
54초 전
12154857 +1
kbs3616991
#804
오답 45.8점 81ms 9.5MB 235BPython 3
3분 전
12154855 +1
kbs3616991
#9539
정답 100점 130ms 9.1MB 184BPython 3
7분 전
12154853 +5
kbs3616991
#803
정답 100점 149ms 9.4MB 92BPython 3
11분 전
12154847
kbs3616991
#9538
정답 100점 66ms 9.1MB 95BPython 3
17분 전
12154846
kbs3616991
#802
정답 100점 74ms 9.4MB 132BPython 3
19분 전
12154845
yh150914
#9354
오답 0점 75ms 9.1MB 89BPython 3
19분 전
12154844 +3
kbs3616991
#802
오답 40점 82ms 9.4MB 132BPython 3
20분 전
12154840
JAX2025
#187
정답 100점 66ms 768KB 530BC++20
21분 전
12154839
kbs3616991
#802
오답 0점 81ms 9.4MB 101BPython 3
22분 전
12154838 +4
kbs3616991
#9537
런타임 에러 0점 0ms - 174BPython 3
26분 전
12154833
JAX2025
#187
정답 100점 25ms 768KB 530BC++20
30분 전
12154832
jaeeea
#9450
정답 100점 22ms 9.3MB 91BPython 3
40분 전
12154831
jellyot
#9334
정답 100점 71ms 9.1MB 73BPython 3
50분 전
12154830 +1
JAX2025
#187
오답 0점 8ms 768KB 455BC++20
51분 전
12154828
jellyot
#9334
컴파일 에러 0점 0ms - 64BPython 3
55분 전
12154827
dlwowns
#9469
정답 100점 78ms 9.4MB 57BPython 3
56분 전
12154826
KATOKA
#110
정답 100점 4ms 768KB 177BC++20
57분 전
12154825
dlwowns
#9468
정답 100점 70ms 9.4MB 120BPython 3
57분 전
12154824
hae
#9476
정답 100점 82ms 9.3MB 439BPython 3
59분 전