/ Vijos /

记录详情

Compile Error

foo.cc:4:26: error: expected initializer before 'int64'
 typedef unsigned __int64 int64;
                          ^~~~~
foo.cc:8:1: error: 'int64' does not name a type; did you mean 'int'?
 int64 d[maxn][maxab][maxab],ans,sum;
 ^~~~~
 int
foo.cc: In function 'void init()':
foo.cc:12:5: error: 'sum' was not declared in this scope
     sum=0;
     ^~~
foo.cc:12:5: note: suggested alternative: 'num'
     sum=0;
     ^~~
     num
foo.cc:13:5: error: 'ans' was not declared in this scope
     ans=0;
     ^~~
foo.cc: At global scope:
foo.cc:34:23: error: 'int64' has not been declared
 void dp(int t1,int t2,int64 now)
                       ^~~~~
foo.cc: In function 'void dp(int, int, int)':
foo.cc:37:5: error: 'int64' was not declared in this scope
     int64 last=0;
     ^~~~~
foo.cc:37:5: note: suggested alternative: 'int'
     int64 last=0;
     ^~~~~
     int
foo.cc:41:11: error: 'd' was not declared in this scope
           d[i][j][k]=0;
           ^
foo.cc:46:12: error: 'd' was not declared in this scope
            d[i][j][k]=d[i-1][j][k];
            ^
foo.cc:55:26: error: 'last' was not declared in this scope
            if(d[i][j][k]>last) last=d[i][j][k];
                          ^~~~
foo.cc:55:26: note: suggested alternative: 'class'
            if(d[i][j][k]>last) last=d[i][j][k];
                          ^~~~
                          class
foo.cc:57:12: error: 'last' was not declared in this scope
     if(now+last>ans) ans=now+last;
            ^~~~
foo.cc:57:12: note: suggested alternative: 'class'
     if(now+last>ans) ans=now+last;
            ^~~~
            class
foo.cc:57:17: error: 'ans' was not declared in this scope
     if(now+last>ans) ans=now+last;
                 ^~~
foo.cc: At global scope:
foo.cc:59:32: error: 'int64' has not been declared
 void dfs(int dep,int t1,int t2,int64 now)
                                ^~~~~
foo.cc: In function 'void write()':
foo.cc:82:28: error: 'sum' was not declared in this scope
     fprintf(fout,"%I64d\n",sum-ans);
                            ^~~
foo.cc:82:28: note: suggested alternative: 'num'
     fprintf(fout,"%I64d\n",sum-ans);
                            ^~~
                            num
foo.cc:82:32: error: 'ans' was not declared in this scope
     fprintf(fout,"%I64d\n",sum-ans);
                                ^~~
foo.cc: In function 'void init()':
foo.cc:15:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     fscanf(fin,"%d%d",&a,&b);
     ~~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:16:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     fscanf(fin,"%d%d",&n,&m);
     ~~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:19:14: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
        fscanf(fin,"%ld%ld",&w[i],&t[i]);
        ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:24:14: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
        fscanf(fin,"%d%d",&num[i],&tot);
        ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:28:16: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
          fscanf(fin,"%d",&x);
          ~~~~~~^~~~~~~~~~~~~

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)

信息

递交者
类型
递交
题目
P1628 情敌
语言
C++
递交时间
2020-05-24 12:30:42
评测时间
2020-05-24 12:30:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes