0_0_22241331_15248.cpp: In function 'int main()': 0_0_22241331_15248.cpp:48:49: error: 'n' was not declared in this scope if ((s + i) % j == 0) {addedge(j, i + n);} ^