fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {printf("inserisci il primo numero");
  5. scanf("%f",&N);
  6. printf("inserisci il secondo numero");
  7. scanf("%f",&N2);
  8. somma=N+N2;
  9. printf("la somma totale è %d\n",somma);
  10. system ("pause")
  11. // your code goes here
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5:13: error: ‘N’ was not declared in this scope
 scanf("%f",&N);
             ^
prog.cpp:7:13: error: ‘N2’ was not declared in this scope
 scanf("%f",&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;
  ^~~~~~
stdout
Standard output is empty