编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#3286 #1007. 这你也敢信? Compile Error 0 0 ms 0 K C / 291 B 197653Zhww 2023-11-25 14:34:44
显示原始代码
#include <stdio.h>
#include <math.h>
void main() {
    int num;
    scanf("%d", &num);
    while (num % 2 == 0) {
        num /= 2;
    }
    while (num % 3 == 0) {
        num /= 3;
    }
    if (num == 1) {
        printf("Yes");
    } else {
        print("No");
    }
}

编译信息

/sandbox/1/a.c:3:1: warning: return type of 'main' is not 'int' [-Wmain-return-type]
void main()
^
/sandbox/1/a.c:3:1: note: change return type to 'int'
void main()
^~~~
int
/sandbox/1/a.c:20:9: warning: implicit declaration of function 'print' is invalid in C99 [-Wimplicit-function-declaration]
        print("No");
        ^
2 warnings generated.
/usr/bin/ld: /tmp/a-59d7d6.o: in function `main':
a.c:(.text+0x9c): undefined reference to `print'
clang: error: linker command failed with exit code 1 (use -v to see invocation)