Fix return on no matching numbers
This commit is contained in:
parent
9e823f892c
commit
851f43507c
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ int main(int argc, char **argv) {
|
||||||
sv_print(&sv);
|
sv_print(&sv);
|
||||||
|
|
||||||
// Actually do the problem here
|
// Actually do the problem here
|
||||||
temp_i = 0;
|
temp_i = -1;
|
||||||
int temp_sum;
|
int temp_sum;
|
||||||
for(unsigned int i = 0; i < sv.size; ++i) {
|
for(unsigned int i = 0; i < sv.size; ++i) {
|
||||||
for(unsigned int j = i + 1; j < sv.size; ++j) {
|
for(unsigned int j = i + 1; j < sv.size; ++j) {
|
||||||
|
|
Loading…
Reference in a new issue