/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:27: error: two or more data types in declaration of 'n'
    8 |         typedef long long int
      |                           ^~~
/in/foo.cc:8:27: error: two or more data types in declaration of 'k'
/in/foo.cc:10:16: error: 'n' was not declared in this scope; did you mean 'yn'?
   10 |         cin >> n >> k;
      |                ^
      |                yn
/in/foo.cc:10:21: error: 'k' was not declared in this scope
   10 |         cin >> n >> k;
      |                     ^
/in/foo.cc:17:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |         for(int i = 1;i<s.size();i++)
      |                       ~^~~~~~~~~

信息

递交者
类型
递交
题目
P1848 记数问题
语言
C++
递交时间
2025-10-24 22:24:03
评测时间
2025-10-24 22:24:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes