Skip to content

Commit

Permalink
Revert "checked for overflow issues."
Browse files Browse the repository at this point in the history
  • Loading branch information
USERSATOSHI authored Mar 23, 2024
1 parent f8fafee commit ceb11dc
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions easy/day_2/solution.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
#include<iostream>
#define ll long long
int main()
{
#include <iostream>

int main() {
int n;
ll sum = 0;
int sum = 0;
std::cout << "Enter the number of elements: ";
std::cin >> n;
n = (n<0)?(-1*n):n;
std::cout << "Enter " << n << " numbers:\n";
for (int i = 0; i < n; ++i)
{
for (int i = 0; i < n; ++i) {
int num;
std::cout << "Enter number " << i + 1 << ": ";
std::cin >> num;
Expand Down

0 comments on commit ceb11dc

Please sign in to comment.