#1429
GenMat21
Scrieţi un program care citeşte de la tastatură un număr natural nenul n
şi construieşte un tablou bidimensional de dimensiune n
după o regulă precizată.
Variante Bacalaureat 2007
Problema | GenMat21 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50651785 | Utilizator | |
Fișier | genmat21.cpp | Dimensiune | 444 B |
Data încărcării | 18 Aprilie 2024, 16:47 | Scor / rezultat | Eroare de compilare |
genmat21.cpp:2:7: error: expected nested-name-specifier before 'namespaceits' using namespaceits/stdc++.h std; ^ genmat21.cpp:2:7: error: 'namespaceits' has not been declared genmat21.cpp:2:19: error: expected ';' before '/' token using namespaceits/stdc++.h std; ^ genmat21.cpp:2:19: error: expected unqualified-id before '/' token genmat21.cpp: In function 'int main()': genmat21.cpp:5:5: error: 'cin' was not declared in this scope cin >> n; ^ genmat21.cpp:5:5: note: suggested alternative: In file included from genmat21.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ genmat21.cpp:13:13: error: 'cout' was not declared in this scope cout << mat[i][j] <<" "; ^ genmat21.cpp:13:13: note: suggested alternative: In file included from genmat21.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ genmat21.cpp:14:9: error: 'cout' was not declared in this scope cout << endl; ^ genmat21.cpp:14:9: note: suggested alternative: In file included from genmat21.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ genmat21.cpp:14:17: error: 'endl' was not declared in this scope cout << endl; ^ genmat21.cpp:14:17: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from genmat21.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 GenMat21 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ă.