/ 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;
 ~~~~~~~~                      
 int 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: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 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 3ms 384.0 KiB
#7 Wrong Answer Read 4234259141353, expect 4527469509965. 3ms 384.0 KiB
#8 Wrong Answer Read 1090256896, expect 40000000000000000. 1ms 384.0 KiB
#9 Wrong Answer Read 33629767221600, expect 280404523784716. 3ms 384.0 KiB
#10 Wrong Answer Read 34922251784263, expect 275007804316281. 3ms 396.0 KiB

信息

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