Problem pigeonhole
User 0ncarat
Submission Time 2024-07-13 11:42:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin>>n>>h;
| ^~~
pigeonhole.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
pigeonhole.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<int> holes(h, 0);
| ^~~~~~
pigeonhole.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
pigeonhole.cpp:2:13: error: expected primary-expression before ‘long’
2 | #define int long long
| ^~~~
pigeonhole.cpp:7:12: note: in expansion of macro ‘int’
7 | vector<int> holes(h, 0);
|