Problem rubies
User Tyx2019
Submission Time 2025-09-18 22:04:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rubies.cpp:6:22: error: stray ‘#’ in program
6 | using namespace std;a#include <bits/stdc++.h>
| ^
rubies.cpp:6:21: error: ‘a’ does not name a type
6 | using namespace std;a#include <bits/stdc++.h>
| ^
rubies.cpp:10:11: error: redefinition of ‘const long long int MOD’
10 | const int MOD = 1e9 + 7;
| ^~~
rubies.cpp:5:11: note: ‘const long long int MOD’ previously defined here
5 | const int MOD = 1e9 + 7;
| ^~~
rubies.cpp:54:11: error: redefinition of ‘const long long int maxN’
54 | const int maxN = 5e5 + 5;
| ^~~~
rubies.cpp:12:11: note: ‘const long long int maxN’ previously defined here
12 | const int maxN = 5e5 + 5;
| ^~~~
rubies.cpp:55:5: error: redefinition of ‘long long int L’
55 | int L, H, N;
| ^
rubies.cpp:13:5: note: ‘long long int L’ previously declared h