실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<ios> | ^~~~~~ Main.cpp:2:21: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | char s[101];int n,l;main(){scanf("%d",&n);while(n--){scanf("%s",s);for(;s[l];l++);printf("%c%c ",*s,s[l-1]);} | ^~~~ Main.cpp: In function ‘int main()’: Main.cpp:2:110: error: expected ‘}’ at end of input 2 | char s[101];int n,l;main(){scanf("%d",&n);while(n--){scanf("%s",s);for(;s[l];l++);printf("%c%c ",*s,s[l-1]);} | ~ ^ Main.cpp:2:33: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2 | char s[101];int n,l;main(){scanf("%d",&n);while(n--){scanf("%s",s);for(;s[l];l++);printf("%c%c ",*s,s[l-1]);} | ~~~~~^~~~~~~~~ Main.cpp:2:59: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2 | char s[101];int n,l;main(){scanf("%d",&n);while(n--){scanf("%s",s);for(;s[l];l++);printf("%c%c ",*s,s[l-1]);} | ~~~~~^~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.