| Problem | carrots |
|---|---|
| User | AaravRastogi |
| Submission Time | 2026-02-01 01:25:16 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
carrots.cpp:1:9: error: macro names must be identifiers
1 | #define <bits/stdc++.h>
| ^
carrots.cpp: In function ‘int main()’:
carrots.cpp:7:11: error: ‘cin’ was not declared in this scope
7 | int n,k; cin>>n>>k;
| ^~~
carrots.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #define <bits/stdc++.h>
carrots.cpp:9:2: error: ‘set’ was not declared in this scope
9 | set<int> C(n);
| ^~~
carrots.cpp:1:1: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
+++ |+#include <set>
1 | #define <bits/stdc++.h>
carrots.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
carrots.cpp:9:6: note: in expansion of macro ‘int’
9 | set&l