#include <iostream> using namespace std; int ADD(int n1 = 1, int n2); int main(void) { cout << ADD(2); } int ADD(int n1, int n2) { return n1 + n2; }
Standard input is empty
prog.cpp:5:5: error: default argument missing for parameter 2 of ‘int ADD(int, int)’ int ADD(int n1 = 1, int n2); ^~~
Standard output is empty