#include <iostream>
using namespace std;
int main(void)
{
int i;
int f(i)
{
return i + 1;
}
int x=1;
f(f(f(x)));
cout << x << endl;
return 0;
}
|9|error: expected ,' or
;' before '{' token|
|14|error: `f' cannot be used as a function|
Jak zapisać poprawnie ten kod? będę wdzięczny za każdą pomoc ;)