记录详情

Compile Error

/in/foo.cc: In function 'int max_sum()':
/in/foo.cc:5:2: error: 'cin' was not declared in this scope
  cin >> N;
  ^~~
/in/foo.cc:6:2: error: 'vector' was not declared in this scope
  vector<int> v(N);
  ^~~~~~
/in/foo.cc:6:9: error: expected primary-expression before 'int'
  vector<int> v(N);
         ^~~
/in/foo.cc:10:10: error: 'v' was not declared in this scope
   cin >> v[i];
          ^
/in/foo.cc:13:12: error: 'v' was not declared in this scope
  int max = v[0];
            ^

信息

递交者
类型
递交
题目
1403连续最大值
语言
C++
递交时间
2020-11-16 15:56:50
评测时间
2020-11-16 15:56:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes