실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:16:32: error: expected ‘)’ before ‘;’ token 16 | for(int i=1;a/i>0;i*=10;){digit++;} | ~ ^ | ) Main.cpp:16:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for(int i=1;a/i>0;i*=10;){digit++;} | ^~~ Main.cpp:16:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 16 | for(int i=1;a/i>0;i*=10;){digit++;} | ^ Main.cpp:16:33: error: expected primary-expression before ‘)’ token Main.cpp:20:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 20 | if(num=1){digit--;num=9*pow(10,digit)-9*digit;} | ~~~^~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.