Problem naan
User tanyap2906
Submission Time 2025-12-05 16:07:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

naan.cpp:2:20: error: expected ‘;’ before ‘>’ token
2 | using namespace std>
| ^
| ;
naan.cpp:2:20: error: expected unqualified-id before ‘>’ token
naan.cpp:10:15: error: variable or field ‘simplify’ declared void
10 | void simplify(Fraction &f) {
| ^~~~~~~~
naan.cpp:10:15: error: ‘Fraction’ was not declared in this scope; did you mean ‘sigaction’?
10 | void simplify(Fraction &f) {
| ^~~~~~~~
| sigaction
naan.cpp:10:25: error: ‘f’ was not declared in this scope
10 | void simplify(Fraction &f) {
| ^
naan.cpp: In function ‘int main()’:
naan.cpp:41:12: error: ‘Fraction’ was not declared in this scope; did you mean ‘sigaction’?
41 | vector<Fraction> cuts; // X1..X(N-1)
| ^~~~~~~~
| sigaction
naan.cpp:41:20: error: template ar