记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:5: error: 'lll' was not declared in this scope
     lll;  
     ^~~
foo.cc:7:5: note: suggested alternative: 'll'
     lll;  
     ^~~
     ll
foo.cc:8:5: error: 'ints' was not declared in this scope
     ints,t,m;  
     ^~~~
foo.cc:8:5: note: suggested alternative: 'int'
     ints,t,m;  
     ^~~~
     int
foo.cc:8:10: error: 't' was not declared in this scope
     ints,t,m;  
          ^
foo.cc:8:12: error: 'm' was not declared in this scope
     ints,t,m;  
            ^
foo.cc:9:10: error: 'l' was not declared in this scope
     cin>>l;  
          ^
foo.cc:10:10: error: 's' was not declared in this scope
     cin>>s>>t>>m;  
          ^
foo.cc:19:5: error: 'intcnt' was not declared in this scope
     intcnt=0;  
     ^~~~~~
foo.cc:19:5: note: suggested alternative: 'int8_t'
     intcnt=0;  
     ^~~~~~
     int8_t
foo.cc:23:12: error: 'cnt' was not declared in this scope
            cnt+=(a[i]-a[i-1])%t+t;   //这里一定要在取模后加t,否则会WA;  
            ^~~
foo.cc:23:12: note: suggested alternative: 'int'
            cnt+=(a[i]-a[i-1])%t+t;   //这里一定要在取模后加t,否则会WA;  
            ^~~
            int
foo.cc:24:8: error: 'elsecnt' was not declared in this scope
        elsecnt+=a[i]-a[i-1];  
        ^~~~~~~
foo.cc:24:8: note: suggested alternative: 'select'
        elsecnt+=a[i]-a[i-1];  
        ^~~~~~~
        select
foo.cc:25:10: error: 'cnt' was not declared in this scope
        v[cnt]=1;  //表示此处有石子;  
          ^~~
foo.cc:25:10: note: suggested alternative: 'int'
        v[cnt]=1;  //表示此处有石子;  
          ^~~
          int
foo.cc:27:7: error: 'cnt' was not declared in this scope
     v[cnt]=0,v[0]=0;  
       ^~~
foo.cc:27:7: note: suggested alternative: 'int'
     v[cnt]=0,v[0]=0;  
       ^~~
       int
foo.cc:34:5: error: 'intans' was not declared in this scope
     intans=2100000000;  
     ^~~~~~
foo.cc:34:5: note: suggested alternative: 'wctrans'
     intans=2100000000;  
     ^~~~~~
     wctrans
foo.cc:36:9: error: 'ans' was not declared in this scope
         ans=min(f[i],ans);  
         ^~~
foo.cc:36:9: note: suggested alternative: 'abs'
         ans=min(f[i],ans);  
         ^~~
         abs
foo.cc:37:11: error: 'ans' was not declared in this scope
     cout<<ans;  
           ^~~
foo.cc:37:11: note: suggested alternative: 'abs'
     cout<<ans;  
           ^~~
           abs
foo.cc:38:5: error: 'return0' was not declared in this scope
     return0;  
     ^~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1067 过河
语言
C++
递交时间
2021-04-10 19:44:49
评测时间
2021-04-10 19:44:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes