Detalii evaluare #54595555

Rezumat problemă

Detalii

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 Sabou Casian (lifevsme)
Fișier fractiimax.cpp Dimensiune 399 B
Data încărcării 03 Decembrie 2024, 11:39 Scor / rezultat Eroare de compilare

Evaluare


Mesaj 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;

                       ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema FractiiMax face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.