#983
ecuatie
Să se determine soluțiile ecuației \({1 \over x} + {1 \over y} + {1 \over z} = {a \over b}\) , unde a<b
sunt numere naturale nenule.
Problema | ecuatie | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54488551 | Utilizator | |
Fișier | ecuatie.cpp | Dimensiune | 2.16 KB |
Data încărcării | 29 Noiembrie 2024, 21:31 | Scor / rezultat | Eroare de compilare |
ecuatie.cpp:1:1: error: 'include' does not name a type include <iostream> ^ ecuatie.cpp: In function 'void brut()': ecuatie.cpp:8:5: error: 'cout' was not declared in this scope cout<<"\n\n metoda bruta"; ^ ecuatie.cpp:9:8: error: 'i' was not declared in this scope for(i=2;i<=q;i++) ^ ecuatie.cpp:10:10: error: 'j' was not declared in this scope for(j=i;j<=q;j++) ^ ecuatie.cpp:12:14: error: 'b' was not declared in this scope u=b*i*j; ^ ecuatie.cpp:13:14: error: 'a' was not declared in this scope v=a*i*j-b*i-b*j; ^ ecuatie.cpp: In function 'int main()': ecuatie.cpp:26:5: error: 'cin' was not declared in this scope cin>>a>>b; ^ ecuatie.cpp:26:10: error: 'a' was not declared in this scope cin>>a>>b; ^ ecuatie.cpp:26:13: error: 'b' was not declared in this scope cin>>a>>b; ^ ecuatie.cpp:27:5: error: 'x' was not declared in this scope x=a; ^ ecuatie.cpp:28:5: error: 'y' was not declared in this scope y=b; ^ ecuatie.cpp:31:9: error: 'r' was not declared in this scope r=x%y; ^ ecuatie.cpp:36:5: error: 'i' was not declared in this scope i=b/a+1; ^ ecuatie.cpp:37:5: error: 'j' was not declared in this scope j=(3*b)/a; ^ ecuatie.cpp:40:8: error: 'c' was not declared in this scope c=a*x-b; ^ ecuatie.cpp:41:8: error: 'd' was not declared in this scope d=b*x; ^ ecuatie.cpp:44:10: error: 'r' was not declared in this scope r=c%d; ^ ecuatie.cpp:48:8: error: 'a1' was not declared in this scope a1=(a*x-b)/d; ^ ecuatie.cpp:49:8: error: 'b1' was not declared in this scope b1=(b*x)/d; ^ ecuatie.cpp:50:12: error: 'k' was not declared in this scope for(k=1;k<=b1;k++) ^ ecuatie.cpp:55:20: error: 'nr' was not declared in this scope {nr++; ^ ecuatie.cpp:56:20: error: 'solx' was not declared in this scope solx[nr]=x; ^ ecuatie.cpp:57:20: error: 'solz' was not declared in this scope solz[nr]=(b1+k)/a1; ^ ecuatie.cpp:58:20: error: 'soly' was not declared in this scope soly[nr]=(b1*solz[nr])/k; ^ ecuatie.cpp:59:26: error: 't' was not declared in this scope t=solz[nr]; ^ ecuatie.cpp:66:5: error: 'poz' was not declared in this scope poz=nr; ^ ecuatie.cpp:66:9: error: 'nr' was not declared in this scope poz=nr; ^ ecuatie.cpp:68:8: error: 'ok' was not declared in this scope ok=1; ^ ecuatie.cpp:70:13: error: 'solx' was not declared in this scope if((solx[i]>solx[i+1])or((solx[i]==solx[i+1])&&(soly[i]>soly[i+1]))) ^ ecuatie.cpp:70:57: error: 'soly' was not declared in this scope if((solx[i]>solx[i+1])or((solx[i]==solx[i+1])&&(soly[i]>soly[i+1]))) ^ ecuatie.cpp:72:16: error: 't' was not declared in this scope t=solx[i]; ^ ecuatie.cpp:78:18: error: 'solz' was not declared in this scope t=solz[i]; ^ ecuatie.cpp:82:16: error: 'xx' was not declared in this scope xx=i; ^ ecuatie.cpp:85:12: error: 'ok' was not declared in this scope }while(ok==0); ^ ecuatie.cpp:87:28: error: 'cout' was not declared in this scope for(i=1;i<=nr;i++) cout<<solx[i]<<" "<<soly[i]<<" "<<solz[i]<<"\n"; ^ ecuatie.cpp:87:34: error: 'solx' was not declared in this scope for(i=1;i<=nr;i++) cout<<solx[i]<<" "<<soly[i]<<" "<<solz[i]<<"\n"; ^ ecuatie.cpp:87:48: error: 'soly' was not declared in this scope for(i=1;i<=nr;i++) cout<<solx[i]<<" "<<soly[i]<<" "<<solz[i]<<"\n"; ^ ecuatie.cpp:87:62: error: 'solz' was not declared in this scope for(i=1;i<=nr;i++) cout<<solx[i]<<" "<<soly[i]<<" "<<solz[i]<<"\n"; ^ ecuatie.cpp:88:11: error: 'cout' was not declared in this scope else cout<<"NU ARE SOLUTII"; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ecuatie 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ă.