naan.cpp: In member function 'bool frac::operator<(frac)':
naan.cpp:10:33: error: 'ldb' was not declared in this scope
bool operator<(frac b){return (ldb)p/q<(ldb)b.p/b.q;}
^~~
naan.cpp:10:33: note: suggested alternative: 'ldiv'
bool operator<(frac b){return (ldb)p/q<(ldb)b.p/b.q;}
^~~
ldiv
naan.cpp:10:37: error: expected ';' before 'p'
bool operator<(frac b){return (ldb)p/q<(ldb)b.p/b.q;}
^
naan.cpp: In function 'int main()':
naan.cpp:16:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i %i",&n,&l);
~~~~~^~~~~~~~~~~~~~~
naan.cpp:19:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i",&v[i][j]);
~~~~~^~~~~~~~~~~~~~~