Problema | FractiiMax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53009471 | Utilizator | |
Fișier | fractiimax.cpp | Dimensiune | 601 B |
Data încărcării | 15 Octombrie 2024, 14:08 | Scor / rezultat | Eroare de compilare |
fractiimax.cpp:13:16: error: 'aint' does not name a type struct fractie{aint a,b;} ^ fractiimax.cpp:13:25: error: expected ';' after struct definition struct fractie{aint a,b;} ^ fractiimax.cpp: In function 'int main()': fractiimax.cpp:20:8: error: 'struct fractie' has no member named 'a' f1.a=x; f1.b=y; ^ fractiimax.cpp:20:16: error: 'struct fractie' has no member named 'b' f1.a=x; f1.b=y; ^ fractiimax.cpp:21:5: error: 'cmmdc1' was not declared in this scope cmmdc1=cmmdc(f1.a, f1.b); ^ fractiimax.cpp:21:21: error: 'struct fractie' has no member named 'a' cmmdc1=cmmdc(f1.a, f1.b); ^ fractiimax.cpp:21:27: error: 'struct fractie' has no member named 'b' cmmdc1=cmmdc(f1.a, f1.b); ^ fractiimax.cpp:21:28: error: 'cmmdc' cannot be used as a function cmmdc1=cmmdc(f1.a, f1.b); ^ fractiimax.cpp:22:8: error: 'struct fractie' has no member named 'a' f1.a/=cmmdc1; ^ fractiimax.cpp:23:8: error: 'struct fractie' has no member named 'b' f1.b/=cmmdc1; ^ fractiimax.cpp:25:8: error: 'struct fractie' has no member named 'a' f2.a=m; f2.b=n; ^ fractiimax.cpp:25:16: error: 'struct fractie' has no member named 'b' f2.a=m; f2.b=n; ^ fractiimax.cpp:26:21: error: 'struct fractie' has no member named 'a' cmmdc1=cmmdc(f2.a, f2.b); ^ fractiimax.cpp:26:27: error: 'struct fractie' has no member named 'b' cmmdc1=cmmdc(f2.a, f2.b); ^ fractiimax.cpp:26:28: error: 'cmmdc' cannot be used as a function cmmdc1=cmmdc(f2.a, f2.b); ^ fractiimax.cpp:27:8: error: 'struct fractie' has no member named 'a' f2.a/=cmmdc1; ^ fractiimax.cpp:28:8: error: 'struct fractie' has no member named 'b' f2.b/=cmmdc1; ^ fractiimax.cpp:29:11: error: 'struct fractie' has no member named 'a' if(f1.a*f2.b > f2.a*f1.b) ^ fractiimax.cpp:29:16: error: 'struct fractie' has no member named 'b' if(f1.a*f2.b > f2.a*f1.b) ^ fractiimax.cpp:29:23: error: 'struct fractie' has no member named 'a' if(f1.a*f2.b > f2.a*f1.b) ^ fractiimax.cpp:29:28: error: 'struct fractie' has no member named 'b' if(f1.a*f2.b > f2.a*f1.b) ^ fractiimax.cpp:30:18: error: 'struct fractie' has no member named 'a' cout<<f1.a<<' '<<f1.b; ^ fractiimax.cpp:30:29: error: 'struct fractie' has no member named 'b' cout<<f1.a<<' '<<f1.b; ^ fractiimax.cpp:32:18: error: 'struct fractie' has no member named 'a' cout<<f2.a<<' '<<f2.b; ^ fractiimax.cpp:32:29: error: 'struct fractie' has no member named 'b' cout<<f2.a<<' '<<f2.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ă.