记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:15: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d",&a);
               ^
/in/foo.cc:18:29: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%ld%ld%ld",&x,&y,&z);
                             ^
/in/foo.cc:18:29: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:18:29: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'long long int*' [-Wformat=]
/in/foo.cc:22:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
    scanf("%ld",&b);
                  ^
/in/foo.cc:25:3: error: 'cout' was not declared in this scope
   cout<<y<<endl;
   ^~~~
/in/foo.cc:25:12: error: 'endl' was not declared in this scope
   cout<<y<<endl;
            ^~~~
/in/foo.cc:11:12: warning: unused variable 'n' [-Wunused-variable]
  long long n[2000]={0};
            ^
/in/foo.cc:12:12: warning: unused variable 'cnt' [-Wunused-variable]
  long long cnt=0;
            ^~~

信息

递交者
类型
递交
题目
P1504 Problem 2A.拆弹专家
语言
C++
递交时间
2024-10-05 23:27:14
评测时间
2024-10-05 23:27:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes