fork download
  1. int main(void)
  2. {
  3. char str[80], str2[80];
  4. int i;
  5. scanf("%s%d", str, &i);
  6. scanf("%79s", str);
  7. scanf("%s%*d%s", str, str2);
  8. char *strpbrk (str1, str2)
  9. printf ("%
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:9:9: warning: missing terminating " character [enabled by default]
 printf ("%
         ^
prog.cpp:9:1: error: missing terminating " character
 printf ("%
 ^
prog.cpp: In function ‘int main()’:
prog.cpp:5:22: error: ‘scanf’ was not declared in this scope
 scanf("%s%d", str, &i);
                      ^
prog.cpp:8:16: error: ‘str1’ was not declared in this scope
 char *strpbrk (str1, str2)
                ^
prog.cpp:8:26: error: expression list treated as compound expression in initializer [-fpermissive]
 char *strpbrk (str1, str2)
                          ^
prog.cpp:9:1: error: expected ‘,’ or ‘;’ before ‘printf’
 printf ("%
 ^
prog.cpp:8:7: warning: unused variable ‘strpbrk’ [-Wunused-variable]
 char *strpbrk (str1, str2)
       ^
stdout
Standard output is empty