记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:5: error: expected initializer before 'cin'
     cin >> n;
     ^~~
/in/foo.cc:8:9: error: 'n' was not declared in this scope
     if (n <= 0 || n >= 10000) {
         ^
/in/foo.cc:13:25: error: 'n' was not declared in this scope
     vector<int> numbers(n);
                         ^
/in/foo.cc:27:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < peaks.size(); ++i) {
                     ~~^~~~~~~~~~~~~~
/in/foo.cc:28:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         cout << peaks[i] << (i < peaks.size() - 1 ? " " : "");
                              ~~^~~~~~~~~~~~~~~~~~

信息

递交者
类型
自测
题目
P1216 C10 峰值
语言
C++
递交时间
2024-10-20 18:35:00
评测时间
2024-10-20 18:35:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes