실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<iostream> | ^~~~~~ Main.cpp:2:21: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | int t;std::string s;main(){for(std::cin>>r;std::cin>>r>>s;r=0,puts(""))for(char c:s;r--)std::cout<<c;} | ^~~~ Main.cpp: In function ‘int main()’: Main.cpp:2:42: error: ‘r’ was not declared in this scope 2 | int t;std::string s;main(){for(std::cin>>r;std::cin>>r>>s;r=0,puts(""))for(char c:s;r--)std::cout<<c;} | ^ Main.cpp:2:84: error: expected ‘)’ before ‘;’ token 2 | int t;std::string s;main(){for(std::cin>>r;std::cin>>r>>s;r=0,puts(""))for(char c:s;r--)std::cout<<c;} | ~ ^ | ) Main.cpp:2:81: warning: unused variable ‘c’ [-Wunused-variable] 2 | int t;std::string s;main(){for(std::cin>>r;std::cin>>r>>s;r=0,puts(""))for(char c:s;r--)std::cout<<c;} | ^ Main.cpp:2:85: error: ‘r’ was not declared in this scope 2 | int t;std::string s;main(){for(std::cin>>r;std::cin>>r>>s;r=0,puts(""))for(char c:s;r--)std::cout<<c;} | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.