/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:30:21: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
   30 | #define sc(a) scanf("%lld",&a)
      |                     ^~~~~~ ~~~
      |                            |
      |                            int*
   31 | #define scc(a,b) scanf("%lld%lld",&a,&b)
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 | #define sccc(a,b,c) scanf("%lld%lld%lld",&a,&b,&c)
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   33 | using namespace std;
      | ~~~~~~~~~~~~~~~~~~~~ 
   34 | const int MAXN=1e6+5;
      | ~~~~~~~~~~~~~~~~~~~~~
   35 | const int MOD=1e9+7;
      | ~~~~~~~~~~~~~~~~~~~~ 
   36 | int n;
      | ~~~~~~               
   37 | ll ans;
      | ~~~~~~~              
   38 | ll llx[105],lly[105],urx[105],ury[105],x[205],y[205],xx[205],yy[205];
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   39 | ll abss(ll x)
      | ~~~~~~~~~~~~~        
   40 | {
      | ~                    
   41 |     if (x<0) return -x;
      |     ~~~~~~~~~~~~~~~~~~~
   42 |     return x;
      |     ~~~~~~~~~        
   43 | }
      | ~                    
   44 | int main()
      | ~~~~~~~~~~           
   45 | {
      | ~                    
   46 |  sc(n);
      |  ~~~~                
foo.cc:46:2: note: in expansion of macro 'sc'
   46 |  sc(n);
      |  ^~
foo.cc:30:25: note: format string is defined here
   30 | #define sc(a) scanf("%lld",&a)
      |                      ~~~^
      |                         |
      |                         long long int*
      |                      %d
foo.cc:30:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   30 | #define sc(a) scanf("%lld",&a)
      |               ~~~~~^~~~~~~~~~~
foo.cc:46:2: note: in expansion of macro 'sc'
   46 |  sc(n);
      |  ^~
foo.cc:50:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   50 |   scanf("%lld%lld%lld%lld",&llx[i],&lly[i],&urx[i],&ury[i]);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 508.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 3ms 384.0 KiB
#7 Accepted 7ms 508.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 4ms 384.0 KiB
#10 Accepted 5ms 512.0 KiB

信息

递交者
类型
递交
题目
P1056 图形面积
语言
C++
递交时间
2022-02-03 14:27:58
评测时间
2022-02-03 14:27:58
评测机
分数
100
总耗时
37ms
峰值内存
512.0 KiB