fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() { // your code goesturn 0;
  5. printf("voici un exemple de message!");
  6. printf("ceci affiche un caractere,%c/nun nombre,%d /nun nombre virgul\ flottante,%f,'z',123, 456.789);
  7. }
Compilation error #stdin compilation error #stdout 0s 4548KB
stdin
Standard input is empty
compilation info
prog.cpp:6:8: warning: missing terminating " character
 printf("ceci affiche un caractere,%c/nun nombre,%d /nun  nombre virgul\ flottante,%f,'z',123, 456.789);
        ^
prog.cpp:6:8: error: missing terminating " character
 printf("ceci affiche un caractere,%c/nun nombre,%d /nun  nombre virgul\ flottante,%f,'z',123, 456.789);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cpp: In function ‘int main()’:
prog.cpp:7:1: error: expected primary-expression before ‘}’ token
 }
 ^
stdout
Standard output is empty