/ Vijos /

记录详情

Compile Error

foo.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
 #inculde<iostream>
  ^~~~~~~
  include
foo.cc:2:2: error: invalid preprocessing directive #inculde; did you mean #include?
 #inculde<vector>
  ^~~~~~~
  include
foo.cc: In function 'int main()':
foo.cc:6:2: error: 'vector' was not declared in this scope
  vector<int> num,name,sq,sb,paper;
  ^~~~~~
foo.cc:6:9: error: expected primary-expression before 'int'
  vector<int> num,name,sq,sb,paper;
         ^~~
foo.cc:7:9: error: 'string' was not declared in this scope
  vector<string> west,gb;
         ^~~~~~
foo.cc:7:9: note: suggested alternative: 'struct'
  vector<string> west,gb;
         ^~~~~~
         struct
foo.cc:7:17: error: 'west' was not declared in this scope
  vector<string> west,gb;
                 ^~~~
foo.cc:7:22: error: 'gb' was not declared in this scope
  vector<string> west,gb;
                      ^~
foo.cc:8:2: error: 'cin' was not declared in this scope
  cin>>num;
  ^~~
foo.cc:8:2: note: suggested alternative: 'main'
  cin>>num;
  ^~~
  main
foo.cc:8:7: error: 'num' was not declared in this scope
  cin>>num;
       ^~~
foo.cc:8:7: note: suggested alternative: 'enum'
  cin>>num;
       ^~~
       enum
foo.cc:9:2: error: 'cout' was not declared in this scope
  cout<<endl;
  ^~~~
foo.cc:9:8: error: 'endl' was not declared in this scope
  cout<<endl;
        ^~~~
foo.cc:9:8: note: suggested alternative: 'enum'
  cout<<endl;
        ^~~~
        enum
foo.cc:10:6: error: declaration of 'auto i' has no initializer
  for(auto i;i!=num;i++)
      ^~~~
foo.cc:12:8: error: 'name' was not declared in this scope
   cin>>name;
        ^~~~
foo.cc:14:8: error: 'sq' was not declared in this scope
   cin>>sq;
        ^~
foo.cc:16:8: error: 'sb' was not declared in this scope
   cin>>sb;
        ^~
foo.cc:22:8: error: 'paper' was not declared in this scope
   cin>>paper;
        ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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