/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:5: error: 'vector' was not declared in this scope
     vector<double>v;
     ^~~~~~
/in/foo.cc:8:5: note: suggested alternative: 'perror'
     vector<double>v;
     ^~~~~~
     perror
/in/foo.cc:8:12: error: expected primary-expression before 'double'
     vector<double>v;
            ^~~~~~
/in/foo.cc:13:9: error: 'v' was not declared in this scope
         v.push_back(x);
         ^
/in/foo.cc:14:23: error: 'sigma' was not declared in this scope
         v.push_back(x*sigma);
                       ^~~~~
/in/foo.cc:16:10: error: 'v' was not declared in this scope
     sort(v.begin(), v.end());
          ^
/in/foo.cc:16:5: error: 'sort' was not declared in this scope
     sort(v.begin(), v.end());
     ^~~~
/in/foo.cc:16:5: note: suggested alternative: 'qsort'
     sort(v.begin(), v.end());
     ^~~~
     qsort
/in/foo.cc:19:18: error: 'MAX' was not declared in this scope
     double min = MAX;
                  ^~~
/in/foo.cc:33:48: error: 'sigma' was not declared in this scope
         cout << v[j]  <<endl << int(v[j - 1] / sigma) << endl;
                                                ^~~~~
/in/foo.cc:36:48: error: 'sigma' was not declared in this scope
         cout << v[j - 1] << endl << int(v[j] / sigma) << endl;
                                                ^~~~~

信息

递交者
类型
递交
题目
P1237 隐形的翅膀
语言
C++
递交时间
2017-10-27 13:31:44
评测时间
2017-10-27 13:31:44
评测机
分数
0
总耗时
331ms
峰值内存
29.586 MiB