#2392
SumaXL
Se dau două numere, unul mare și unul mic, ambele pozitive. Calculați suma lor.
Problema | SumaXL | Operații I/O |
sumaxl.in /sumaxl.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52868403 | Utilizator | |
Fișier | sumaxl.cpp | Dimensiune | 650 B |
Data încărcării | 11 Octombrie 2024, 10:52 | Scor / rezultat | Eroare de compilare |
sumaxl.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream cout("sumaxl.in") ^ sumaxl.cpp: In function 'int main()': sumaxl.cpp:10:10: error: 'nx' was not declared in this scope cin>>nx; ^ sumaxl.cpp:14:9: error: 'x' was not declared in this scope x[nx-i+1]=cif; ^ sumaxl.cpp:20:9: error: 'ny' was not declared in this scope ny++; ^ sumaxl.cpp:21:9: error: 'y' was not declared in this scope y[ny]=a%10; ^ sumaxl.cpp:24:5: error: 'nz' was not declared in this scope nz=nx; ^ sumaxl.cpp:28:9: error: 'z' was not declared in this scope z[i]=x[i]+y[i]+ct; ^ sumaxl.cpp:28:14: error: 'x' was not declared in this scope z[i]=x[i]+y[i]+ct; ^ sumaxl.cpp:28:19: error: 'y' was not declared in this scope z[i]=x[i]+y[i]+ct; ^ sumaxl.cpp:35:9: error: 'z' was not declared in this scope z[nz]=ct%10; ^ sumaxl.cpp:39:9: error: 'cout' was not declared in this scope cout<<z[i]; ^ sumaxl.cpp:39:15: error: 'z' was not declared in this scope cout<<z[i]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SumaXL 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ă.