记录详情

Compile Error

foo.cc: In function 'int maincx()':
foo.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin>>n>>k;
      |         ^~~
foo.cc:3:14: error: 'n' was not declared in this scope
    3 |         cin>>n>>k;
      |              ^
foo.cc:3:17: error: 'k' was not declared in this scope
    3 |         cin>>n>>k;
      |                 ^
foo.cc:6:22: error: 'm' was not declared in this scope
    6 |                 cin>>m;
      |                      ^
foo.cc:7:17: error: 'a' was not declared in this scope
    7 |                 a[m]++;
      |                 ^
foo.cc:8:10: error: 'm' was not declared in this scope
    8 |         }m=0;
      |          ^
foo.cc:11:20: error: 'a' was not declared in this scope
   11 |                 if(a[i]>0) m++;
      |                    ^
foo.cc:14:25: error: 'cout' was not declared in this scope
   14 |                         cout<<i;
      |                         ^~~~
foo.cc:15:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |                         return;
      |                         ^~~~~~
foo.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout<<"NO RESULT";
      |         ^~~~
foo.cc:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1357 4A 第k小的数
语言
C++
递交时间
2023-08-24 16:10:52
评测时间
2023-08-24 16:10:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes