Problema | FractiiMax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54595555 | Utilizator | |
Fișier | fractiimax.cpp | Dimensiune | 399 B |
Data încărcării | 03 Decembrie 2024, 11:39 | Scor / rezultat | Eroare de compilare |
fractiimax.cpp: In function 'int main()': fractiimax.cpp:9:1: error: expected ';' after struct definition }int c,d; ^ fractiimax.cpp:10:8: error: request for member 'a' in 'c', which is of non-class type 'int' cin>>c.a<<c.b; ^ fractiimax.cpp:10:13: error: request for member 'b' in 'c', which is of non-class type 'int' cin>>c.a<<c.b; ^ fractiimax.cpp:11:8: error: request for member 'a' in 'd', which is of non-class type 'int' cin>>d.a>>d.b; ^ fractiimax.cpp:11:13: error: request for member 'b' in 'd', which is of non-class type 'int' cin>>d.a>>d.b; ^ fractiimax.cpp:12:1: error: 'e' was not declared in this scope e=c.a; f=c.b; ^ fractiimax.cpp:12:5: error: request for member 'a' in 'c', which is of non-class type 'int' e=c.a; f=c.b; ^ fractiimax.cpp:12:8: error: 'f' was not declared in this scope e=c.a; f=c.b; ^ fractiimax.cpp:12:12: error: request for member 'b' in 'c', which is of non-class type 'int' e=c.a; f=c.b; ^ fractiimax.cpp:14:7: error: 'r' was not declared in this scope while(r!=0) ^ fractiimax.cpp:18:3: error: request for member 'a' in 'c', which is of non-class type 'int' c.a=c.a/f;c.b=c.b/f; ^ fractiimax.cpp:18:7: error: request for member 'a' in 'c', which is of non-class type 'int' c.a=c.a/f;c.b=c.b/f; ^ fractiimax.cpp:18:13: error: request for member 'b' in 'c', which is of non-class type 'int' c.a=c.a/f;c.b=c.b/f; ^ fractiimax.cpp:18:17: error: request for member 'b' in 'c', which is of non-class type 'int' c.a=c.a/f;c.b=c.b/f; ^ fractiimax.cpp:19:5: error: request for member 'a' in 'd', which is of non-class type 'int' e=d.a; f=d.b; ^ fractiimax.cpp:19:12: error: request for member 'b' in 'd', which is of non-class type 'int' e=d.a; f=d.b; ^ fractiimax.cpp:20:1: error: 'r' was not declared in this scope r=e%f; ^ fractiimax.cpp:25:3: error: request for member 'a' in 'd', which is of non-class type 'int' d.a=d.a/f; d.b=d.b/f; ^ fractiimax.cpp:25:7: error: request for member 'a' in 'd', which is of non-class type 'int' d.a=d.a/f; d.b=d.b/f; ^ fractiimax.cpp:25:14: error: request for member 'b' in 'd', which is of non-class type 'int' d.a=d.a/f; d.b=d.b/f; ^ fractiimax.cpp:25:18: error: request for member 'b' in 'd', which is of non-class type 'int' d.a=d.a/f; d.b=d.b/f; ^ fractiimax.cpp:26:6: error: request for member 'a' in 'c', which is of non-class type 'int' if(c.a*d.b<c.b*d.a) ^ fractiimax.cpp:26:10: error: request for member 'b' in 'd', which is of non-class type 'int' if(c.a*d.b<c.b*d.a) ^ fractiimax.cpp:26:14: error: request for member 'b' in 'c', which is of non-class type 'int' if(c.a*d.b<c.b*d.a) ^ fractiimax.cpp:26:18: error: request for member 'a' in 'd', which is of non-class type 'int' if(c.a*d.b<c.b*d.a) ^ fractiimax.cpp:27:13: error: request for member 'a' in 'd', which is of non-class type 'int' cout<<d.a<<" "<<d.b; ^ fractiimax.cpp:27:23: error: request for member 'b' in 'd', which is of non-class type 'int' cout<<d.a<<" "<<d.b; ^ fractiimax.cpp:29:13: error: request for member 'a' in 'c', which is of non-class type 'int' cout<<c.a<<" "<<c.b; ^ fractiimax.cpp:29:23: error: request for member 'b' in 'c', which is of non-class type 'int' cout<<c.a<<" "<<c.b; ^
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ă.