#213
GenMat4
Scrieţi un program care citeşte de la tastatură un număr natural nenul n
construieşte un tablou bidimensional de dimensiune n
în care fiecare element este egal cu ultima cifră a produsului indicilor.
Variante Bacalaureat 2009
Problema | GenMat4 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54046078 | Utilizator | |
Fișier | genmat4.cpp | Dimensiune | 335 B |
Data încărcării | 18 Noiembrie 2024, 17:28 | Scor / rezultat | Eroare de compilare |
genmat4.cpp:2:7: error: expected nested-name-specifier before 'namespcae' using namespcae std; ^ genmat4.cpp:2:7: error: 'namespcae' has not been declared genmat4.cpp:2:17: error: expected ';' before 'std' using namespcae std; ^ genmat4.cpp:2:17: error: 'std' does not name a type genmat4.cpp: In function 'int main()': genmat4.cpp:7:5: error: 'cin' was not declared in this scope cin>>n; ^ genmat4.cpp:7:5: note: suggested alternative: In file included from genmat4.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ genmat4.cpp:14:13: error: 'cout' was not declared in this scope cout<<a[i][j]<<" "; ^ genmat4.cpp:14:13: note: suggested alternative: In file included from genmat4.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ genmat4.cpp:16:9: error: 'cout' was not declared in this scope cout<<endl; ^ genmat4.cpp:16:9: note: suggested alternative: In file included from genmat4.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ genmat4.cpp:16:15: error: 'endl' was not declared in this scope cout<<endl; ^ genmat4.cpp:16:15: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from genmat4.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: 'std::endl' endl(basic_ostream<_CharT, _Traits>& __os) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GenMat4 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ă.