실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<bits/stdc++.h> | ^~~~~~ Main.cpp:2:41: error: stray ‘\’ in program 2 | int a,b,d;main(){scanf("%d%d",&a,&b);d=a\std::gcd(a,b);printf("%d %d",d,a*b/d);} | ^ Main.cpp:2:11: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | int a,b,d;main(){scanf("%d%d",&a,&b);d=a\std::gcd(a,b);printf("%d %d",d,a*b/d);} | ^~~~ Main.cpp: In function ‘int main()’: Main.cpp:2:41: error: expected ‘;’ before ‘std’ 2 | int a,b,d;main(){scanf("%d%d",&a,&b);d=a\std::gcd(a,b);printf("%d %d",d,a*b/d);} | ^~~~ | ; Main.cpp:2:23: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2 | int a,b,d;main(){scanf("%d%d",&a,&b);d=a\std::gcd(a,b);printf("%d %d",d,a*b/d);} | ~~~~~^~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.