/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <iostream> include <math.h>
 ^
foo.cpp: In function 'int main()':
foo.cpp:7:1: error: 'string' was not declared in this scope
 string name[102],xue[102],xi[102],str;
 ^
foo.cpp:7:8: error: expected ';' before 'name'
 string name[102],xue[102],xi[102],str;
        ^
foo.cpp:8:1: error: 'cin' was not declared in this scope
 cin>>n;
 ^
foo.cpp:11:6: error: 'name' was not declared in this scope
 cin>>name[i];
      ^
foo.cpp:14:6: error: 'xue' was not declared in this scope
 cin>>xue[i];
      ^
foo.cpp:15:6: error: 'xi' was not declared in this scope
 cin>>xi[i];
      ^
foo.cpp:25:23: error: 'xi' was not declared in this scope
     if (mark[i]>85 && xi[i]=="Y") money[i]=money[i]+1000;
                       ^
foo.cpp:26:9: error: 'xue' was not declared in this scope
     if (xue[i]=="Y" && cmark[i]>80) money[i]=money[i]+850;
         ^
foo.cpp:37:22: error: 'str' was not declared in this scope
                      str=name[i];
                      ^
foo.cpp:37:26: error: 'name' was not declared in this scope
                      str=name[i];
                          ^
foo.cpp:40:1: error: 'cout' was not declared in this scope
 cout<<str<<endl;
 ^
foo.cpp:40:7: error: 'str' was not declared in this scope
 cout<<str<<endl;
       ^
foo.cpp:40:12: error: 'endl' was not declared in this scope
 cout<<str<<endl;
            ^
foo.cpp:5:26: warning: unused variable 'j' [-Wunused-variable]
 long long money[102],n,i,j,mark[102],cmark[102],art[102],sum,max;
                          ^

信息

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