fork download
  1. /*сравнение со словарем*/
  2. char line1[1024];
  3. char numline1 = 0;
  4. while (fgets(line1, sizeof(line1), file_export)) {
  5. ++numline1;
  6.  
  7. char line2[1024];
  8. char nomerstroki2 = 0;
  9. rewind(file_2);
  10.  
  11. while (fgets(line2, sizeof(line2), file_2)) {
  12. ++nomerstroki2;
  13.  
  14. if (strcmp(line1, line2) == 0) {
  15. printf("Найдено совпадение со словарем! %s", line1);
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:4:1: error: expected identifier or ‘(’ before ‘while’
 while (fgets(line1, sizeof(line1), file_export)) {
 ^~~~~
stdout
Standard output is empty