Commit d94c0d93 authored by Michael's avatar Michael

michael.davityan:exercise_07_37

parent 35b1bafb
...@@ -46,7 +46,7 @@ main() ...@@ -46,7 +46,7 @@ main()
size_t integersArraySize; size_t integersArraySize;
std::cin >> integersArraySize; std::cin >> integersArraySize;
if (integersArraySize > BUFFER_SIZE) { if (integersArraySize > BUFFER_SIZE) {
std::cerr << "Error 1: size must be less or equal to 10.\n"; std::cerr << "Error 1: size must be less or equal than 10.\n";
return 1; return 1;
} }
int integersArray[integersArraySize]; int integersArray[integersArraySize];
...@@ -59,7 +59,7 @@ main() ...@@ -59,7 +59,7 @@ main()
size_t floatingArraySize; size_t floatingArraySize;
std::cin >> floatingArraySize; std::cin >> floatingArraySize;
if (integersArraySize > BUFFER_SIZE) { if (integersArraySize > BUFFER_SIZE) {
std::cerr << "Error 1: size must be less or equal to 10.\n"; std::cerr << "Error 1: size must be less or equal than 10.\n";
return 1; return 1;
} }
double floatingArray[floatingArraySize]; double floatingArray[floatingArraySize];
...@@ -72,7 +72,7 @@ main() ...@@ -72,7 +72,7 @@ main()
size_t charactersArraySize; size_t charactersArraySize;
std::cin >> charactersArraySize; std::cin >> charactersArraySize;
if (integersArraySize > BUFFER_SIZE) { if (integersArraySize > BUFFER_SIZE) {
std::cerr << "Error 1: size must be less or equal to 10.\n"; std::cerr << "Error 1: size must be less or equal than 10.\n";
return 1; return 1;
} }
char charactersArray[charactersArraySize]; char charactersArray[charactersArraySize];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment