Problema | FractiiMax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53654860 | Utilizator | |
Fișier | fractiimax.cpp | Dimensiune | 470 B |
Data încărcării | 07 Noiembrie 2024, 13:22 | Scor / rezultat | Eroare de compilare |
fractiimax.cpp:6:1: error: expected ';' after struct definition } ^ fractiimax.cpp: In function 'int cmmdc(int, int)': fractiimax.cpp:17:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ fractiimax.cpp: In function 'int main()': fractiimax.cpp:20:13: error: request for member 'a' in 'f1', which is of non-class type 'int' cin>>f1.a>>f1.b; ^ fractiimax.cpp:20:19: error: request for member 'b' in 'f1', which is of non-class type 'int' cin>>f1.a>>f1.b; ^ fractiimax.cpp:21:13: error: request for member 'a' in 'f2', which is of non-class type 'int' cin>>f2.a>>f2.b; ^ fractiimax.cpp:21:19: error: request for member 'b' in 'f2', which is of non-class type 'int' cin>>f2.a>>f2.b; ^ fractiimax.cpp:22:8: error: 'f1a' was not declared in this scope if(f1a*f2b>f1b*f2a) ^ fractiimax.cpp:22:12: error: 'f2b' was not declared in this scope if(f1a*f2b>f1b*f2a) ^ fractiimax.cpp:22:16: error: 'f1b' was not declared in this scope if(f1a*f2b>f1b*f2a) ^ fractiimax.cpp:22:20: error: 'f2a' was not declared in this scope if(f1a*f2b>f1b*f2a) ^ fractiimax.cpp:24:9: error: 'c' was not declared in this scope c=cmmdc(f1.a,f1.b) ^ fractiimax.cpp:24:20: error: request for member 'a' in 'f1', which is of non-class type 'int' c=cmmdc(f1.a,f1.b) ^ fractiimax.cpp:24:25: error: request for member 'b' in 'f1', which is of non-class type 'int' c=cmmdc(f1.a,f1.b) ^ fractiimax.cpp:25:9: error: expected ';' before 'cout' cout<<f1.a/c<<" "<<f1.b/c; ^ fractiimax.cpp:29:9: error: 'c' was not declared in this scope c=cmmdc(f2.a,f2.b); ^ fractiimax.cpp:29:20: error: request for member 'a' in 'f2', which is of non-class type 'int' c=cmmdc(f2.a,f2.b); ^ fractiimax.cpp:29:25: error: request for member 'b' in 'f2', which is of non-class type 'int' c=cmmdc(f2.a,f2.b); ^ fractiimax.cpp:30:18: error: request for member 'a' in 'f2', which is of non-class type 'int' cout<<f2.a/c<<" "<<f2.b/c; ^ fractiimax.cpp:30:31: error: request for member 'b' in 'f2', which is of non-class type 'int' cout<<f2.a/c<<" "<<f2.b/c; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FractiiMax face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.