prog.cpp: In function ‘int main()’:
prog.cpp:5:13: error: ‘N’ was not declared in this scope
scanf("%d",&N);
^
prog.cpp:7:13: error: ‘N2’ was not declared in this scope
scanf("%d",&N2);
^~
prog.cpp:8:1: error: ‘somma’ was not declared in this scope
somma=N+N2;
^~~~~
prog.cpp:12:2: error: expected ‘;’ before ‘return’
return 0;
^~~~~~