/ Vijos /

记录详情

Compile Error

/in/foo.cc:10:1: error: expected ';' after struct definition
 }
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:18:11: error: expected primary-expression before '.' token
   cin>>mes.name[i]>>mes.tl[i]>>mes.cl[i]>>mes.sg[i]>>mes.ws[i]>>mes.wn[i];
           ^
/in/foo.cc:18:24: error: expected primary-expression before '.' token
   cin>>mes.name[i]>>mes.tl[i]>>mes.cl[i]>>mes.sg[i]>>mes.ws[i]>>mes.wn[i];
                        ^
/in/foo.cc:18:35: error: expected primary-expression before '.' token
   cin>>mes.name[i]>>mes.tl[i]>>mes.cl[i]>>mes.sg[i]>>mes.ws[i]>>mes.wn[i];
                                   ^
/in/foo.cc:18:46: error: expected primary-expression before '.' token
   cin>>mes.name[i]>>mes.tl[i]>>mes.cl[i]>>mes.sg[i]>>mes.ws[i]>>mes.wn[i];
                                              ^
/in/foo.cc:18:57: error: expected primary-expression before '.' token
   cin>>mes.name[i]>>mes.tl[i]>>mes.cl[i]>>mes.sg[i]>>mes.ws[i]>>mes.wn[i];
                                                         ^
/in/foo.cc:18:68: error: expected primary-expression before '.' token
   cin>>mes.name[i]>>mes.tl[i]>>mes.cl[i]>>mes.sg[i]>>mes.ws[i]>>mes.wn[i];
                                                                    ^
/in/foo.cc:19:9: error: expected primary-expression before '.' token
   if(mes.tl[i]>80 && mes.wn[i]>=1)
         ^
/in/foo.cc:19:25: error: expected primary-expression before '.' token
   if(mes.tl[i]>80 && mes.wn[i]>=1)
                         ^
/in/foo.cc:20:7: error: expected unqualified-id before '.' token
    mes.money[i]+=8000;
       ^
/in/foo.cc:21:9: error: expected primary-expression before '.' token
   if(mes.tl[i]>85 && mes.cl[i]>80)
         ^
/in/foo.cc:21:25: error: expected primary-expression before '.' token
   if(mes.tl[i]>85 && mes.cl[i]>80)
                         ^
/in/foo.cc:22:7: error: expected unqualified-id before '.' token
    mes.money[i]+=4000;
       ^
/in/foo.cc:23:9: error: expected primary-expression before '.' token
   if(mes.tl[i]>90)
         ^
/in/foo.cc:24:7: error: expected unqualified-id before '.' token
    mes.money[i]+=2000;
       ^
/in/foo.cc:25:9: error: expected primary-expression before '.' token
   if(mes.tl[i]>85 && mes.ws[i]=='Y')
         ^
/in/foo.cc:25:25: error: expected primary-expression before '.' token
   if(mes.tl[i]>85 && mes.ws[i]=='Y')
                         ^
/in/foo.cc:26:7: error: expected unqualified-id before '.' token
    mes.money[i]+=1000;
       ^
/in/foo.cc:27:9: error: expected primary-expression before '.' token
   if(mes.cl[i]>80 && mes.sg[i]=='Y')
         ^
/in/foo.cc:27:25: error: expected primary-expression before '.' token
   if(mes.cl[i]>80 && mes.sg[i]=='Y')
                         ^
/in/foo.cc:28:7: error: expected unqualified-id before '.' token
    mes.money[i]+=850;
       ^
/in/foo.cc:29:12: error: expected primary-expression before '.' token
   allm+=mes.money[i];
            ^
/in/foo.cc:34:9: error: expected primary-expression before '.' token
   if(mes.money[i]>=maxx)
         ^
/in/foo.cc:36:12: error: expected primary-expression before '.' token
    maxx=mes.money[i];
            ^
/in/foo.cc:40:11: error: expected primary-expression before '.' token
  cout<<mes.name[t]<<endl<<mes.money[t]<<allm;
           ^
/in/foo.cc:40:30: error: expected primary-expression before '.' token
  cout<<mes.name[t]<<endl<<mes.money[t]<<allm;
                              ^

信息

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