/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:30:30: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
 #define sc(a) scanf("%lld",&a)
                            ~~^~
 #define scc(a,b) scanf("%lld%lld",&a,&b)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 #define sccc(a,b,c) scanf("%lld%lld%lld",&a,&b,&c)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 using namespace std;
 ~~~~~~~~~~~~~~~~~~~~~         
 const int MAXN=1e6+5;
 ~~~~~~~~~~~~~~~~~~~~~~        
 const int MOD=1e9+7;
 ~~~~~~~~~~~~~~~~~~~~~         
 int n;
 ~~~~~~~                       
 ll ans;
 ~~~~~~~~                      
 ll llx[105],lly[105],urx[105],ury[105],x[205],y[205],xx[205],yy[205];
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ll abss(ll x)
 ~~~~~~~~~~~~~~                
 {
 ~~                            
     if (x<0) return -x;
     ~~~~~~~~~~~~~~~~~~~~      
     return x;
     ~~~~~~~~~~                
 }
 ~~                            
 int main()
 ~~~~~~~~~~~                   
 {
 ~~                            
  sc(n);
  ~~~~                         
foo.cc:46:2: note: in expansion of macro 'sc'
  sc(n);
  ^~
foo.cc:50:51: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d%d%d%d",&llx[i],&lly[i],&urx[i],&ury[i]);
                    ~~~~~~~                        ^
foo.cc:50:51: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cc:50:51: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
foo.cc:50:51: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=]
foo.cc:30:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 #define sc(a) scanf("%lld",&a)
               ~~~~~^~~~~~~~~~~
foo.cc:46:2: note: in expansion of macro 'sc'
  sc(n);
  ^~
foo.cc:50:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d%d%d",&llx[i],&lly[i],&urx[i],&ury[i]);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read 8, expect 10. 1ms 384.0 KiB
#2 Wrong Answer Read 0, expect 22. 1ms 384.0 KiB
#3 Wrong Answer Read 321, expect 836. 1ms 384.0 KiB
#4 Wrong Answer Read 47244640958, expect 1939. 2ms 384.0 KiB
#5 Wrong Answer Read 424228945, expect 571613184. 2ms 384.0 KiB
#6 Wrong Answer Read 43034503534, expect 59587931768. 4ms 384.0 KiB
#7 Wrong Answer Read 3552531467482, expect 4527469509965. 4ms 384.0 KiB
#8 Wrong Answer Read 0, expect 40000000000000000. 1ms 384.0 KiB
#9 Accepted 3ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1056 图形面积
语言
C++
递交时间
2021-03-22 19:11:10
评测时间
2021-03-22 19:11:10
评测机
分数
20
总耗时
26ms
峰值内存
384.0 KiB