fork(1) download
  1. #include <clocale>
  2. #include <cstdio>
  3.  
  4.  
  5. struct perevozki
  6. {
  7. char fam[20];
  8. char mark[20];
  9. char punkt[20];
  10. char gruz[20];
  11. int ves;
  12. };
  13.  
  14. main()
  15.  
  16. {
  17. setlocale(LC_ALL, "Russian");
  18. int i;
  19. perevozki perev[5] ={"ÄåГ*èñîâ", "DAF", "ГЉГ°Г*êîâ", "ГЏГЁГўГ®" ,10000,
  20. "ÈâГ*Г*îâ", "Renault", "ГЉГ*ìåГ*Гј", "ÙåáåГ*Гј" , 150000,
  21. "Ìûøîâ", "KamAZ", "Г‹Г*äîâêГ*", "Г—ГІГ®-ГІГ®" , 150000,
  22. "ÄåГ*èñîâ", "BelAZ", "ГѓГ*ìáóðã", "ГЌГЁГ·ГҐГЈГ®" , 0,
  23. "ÈâГ*Г*îâ", "Renault", "ГЉГ*ìåГ*Гј", "ÙåáåГ*Гј" , 120000};
  24.  
  25.  
  26. // 1. Îïðåäåëèòü Г¬Г*ГЄГ±ГЁГ¬Г*ëüГ*ûé ГўГҐГ± ãðóçГ* ГЁ âûâåñòè ГґГ*ìèëèè øîôåðîâ ГЁ ГЇГіГ*ГЄГІГ» ñëåäîâГ*Г*ГЁГї, ГЄГіГ¤Г* áûë ïåðåâåçåГ* ãðóç Г¬Г*ГЄГ±ГЁГ¬Г*ëüГ*îãî ГўГҐГ±Г*
  27. int max;
  28. for (i=0;i<5;i++)
  29. {
  30. if (perev[i].ves>=max)
  31. max=perev[i].ves;
  32. }
  33. for (i=0;i<5;i++)
  34. {
  35. if (perev[i].ves>=max)
  36. printf("%s, %s, %d\n", perev[i].fam,perev[i].punkt,perev[i].ves);
  37. }
  38.  
  39. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
                     "ÈâГ*Г*îâ", "Renault", "ГЉГ*ìåГ*Гј", "ÙåáåГ*Гј" , 120000};
                                                                                                                        ^
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
prog.cpp:23:120: error: initializer-string for array of chars is too long [-fpermissive]
stdout
Standard output is empty