编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#1887 #991. 十万伏特 Compile Error 0 0 ms 0 K C / 153 B t330026229 2023-10-15 16:59:15
显示原始代码
#include <stdio.h>
int main() {
    long long int t;
    long long int E;
    scanf("%ld%ld", &t) E = 5 * t;
    printf("%ld", E);
    printf("00000");
    return 0;

编译信息

/sandbox/1/a.c:6:18: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat]
        scanf("%ld%ld", &t)
               ~~~      ^~
               %lld
/sandbox/1/a.c:6:14: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
        scanf("%ld%ld", &t)
                  ~~^
/sandbox/1/a.c:6:21: error: expected ';' after expression
        scanf("%ld%ld", &t)
                           ^
                           ;
/sandbox/1/a.c:8:16: warning: format specifies type 'long' but the argument has type 'long long' [-Wformat]
        printf("%ld", E);
                ~~~   ^
                %lld
/sandbox/1/a.c:10:11: error: expected '}'
        return 0;
                 ^
/sandbox/1/a.c:3:1: note: to match this '{'
{
^
3 warnings and 2 errors generated.