Problem omnomnom
User chickengoat
Submission Time 2026-08-01 10:36:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom.cpp:5:10: error: uninitialized const ‘n’ [-fpermissive]
5 | const ll n;
| ^
omnomnom.cpp:6:9: error: size of array ‘eat’ is not an integral constant-expression
6 | ll eat[n+1];
| ~^~
omnomnom.cpp: In function ‘void number_tree(int, int)’:
omnomnom.cpp:14:5: error: ‘end1’ was not declared in this scope
14 | end1[x] = counter - 1;
| ^~~~
omnomnom.cpp:14:15: error: ‘counter’ was not declared in this scope
14 | end1[x] = counter - 1;
| ^~~~~~~
omnomnom.cpp: In function ‘int main()’:
omnomnom.cpp:17:6: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘const ll’ {aka ‘const long long int’})
17 | cin >> n;
| ~~~ ^~ ~
| | |
| | const ll {aka const long long int}
| std::istream {aka std::basic_istream<char>}
In file included from