/ Vijos /

记录详情

Compile Error

/in/foo.cc:4:26: error: expected initializer before 'int64'
 typedef unsigned __int64 int64;
                          ^~~~~
/in/foo.cc:8:1: error: 'int64' does not name a type
 int64 d[maxn][maxab][maxab],ans,sum;
 ^~~~~
/in/foo.cc: In function 'void init()':
/in/foo.cc:12:5: error: 'sum' was not declared in this scope
     sum=0;
     ^~~
/in/foo.cc:13:5: error: 'ans' was not declared in this scope
     ans=0;
     ^~~
/in/foo.cc: At global scope:
/in/foo.cc:34:23: error: 'int64' has not been declared
 void dp(int t1,int t2,int64 now)
                       ^~~~~
/in/foo.cc: In function 'void dp(int, int, int)':
/in/foo.cc:37:5: error: 'int64' was not declared in this scope
     int64 last=0;
     ^~~~~
/in/foo.cc:41:11: error: 'd' was not declared in this scope
           d[i][j][k]=0;
           ^
/in/foo.cc:46:12: error: 'd' was not declared in this scope
            d[i][j][k]=d[i-1][j][k];
            ^
/in/foo.cc:55:26: error: 'last' was not declared in this scope
            if(d[i][j][k]>last) last=d[i][j][k];
                          ^~~~
/in/foo.cc:57:12: error: 'last' was not declared in this scope
     if(now+last>ans) ans=now+last;
            ^~~~
/in/foo.cc:57:17: error: 'ans' was not declared in this scope
     if(now+last>ans) ans=now+last;
                 ^~~
/in/foo.cc: At global scope:
/in/foo.cc:59:32: error: 'int64' has not been declared
 void dfs(int dep,int t1,int t2,int64 now)
                                ^~~~~
/in/foo.cc: In function 'void write()':
/in/foo.cc:82:28: error: 'sum' was not declared in this scope
     fprintf(fout,"%I64d\n",sum-ans);
                            ^~~
/in/foo.cc:82:32: error: 'ans' was not declared in this scope
     fprintf(fout,"%I64d\n",sum-ans);
                                ^~~

信息

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