/ Vijos /

记录详情

Compile Error

/in/foo.cc:6:11: error: stray '\357' in program
  int max=0;
           ^
/in/foo.cc:6:12: error: stray '\274' in program
  int max=0;
            ^
/in/foo.cc:6:13: error: stray '\233' in program
  int max=0;
             ^
/in/foo.cc:8:25: error: stray '\357' in program
  string maxn,name,bgb,xb;
                         ^
/in/foo.cc:8:26: error: stray '\274' in program
  string maxn,name,bgb,xb;
                          ^
/in/foo.cc:8:27: error: stray '\233' in program
  string maxn,name,bgb,xb;
                           ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:2: error: expected ',' or ';' before 'int'
  int a,b,c=0,d,z=0;
  ^~~
/in/foo.cc:9:4: error: expected initializer before 'int'
    int n;
    ^~~
/in/foo.cc:10:9: error: 'n' was not declared in this scope
    cin>>n;
         ^
/in/foo.cc:13:12: error: 'a' was not declared in this scope
 cin>>name>>a>>b>>bgb>>xb>>d;
            ^
/in/foo.cc:13:15: error: 'b' was not declared in this scope
 cin>>name>>a>>b>>bgb>>xb>>d;
               ^
/in/foo.cc:13:23: error: 'xb' was not declared in this scope
 cin>>name>>a>>b>>bgb>>xb>>d;
                       ^~
/in/foo.cc:13:27: error: 'd' was not declared in this scope
 cin>>name>>a>>b>>bgb>>xb>>d;
                           ^
/in/foo.cc:14:18: error: 'c' was not declared in this scope
    if(a>80&&d>=1)c+=8000;
                  ^
/in/foo.cc:15:18: error: 'c' was not declared in this scope
    if(a>85&&b>80)c+=4000;
                  ^
/in/foo.cc:16:12: error: 'c' was not declared in this scope
    if(a>90)c+=2000;
            ^
/in/foo.cc:17:21: error: 'c' was not declared in this scope
    if(a>85&&xb=="Y")c+=1000;
                     ^
/in/foo.cc:18:22: error: 'c' was not declared in this scope
    if(b>80&&bgb=="Y")c+=850;
                      ^
/in/foo.cc:19:4: error: 'z' was not declared in this scope
    z=z+c;
    ^
/in/foo.cc:19:8: error: 'c' was not declared in this scope
    z=z+c;
        ^
/in/foo.cc:23:33: error: 'z' was not declared in this scope
    cout<<maxn<<endl<<max<<endl<<z;
                                 ^

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2019-03-13 20:41:07
评测时间
2019-03-13 20:41:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes