fork(1) download
  1. // header
  2.  
  3. typedef struct Point PointType;
  4. struct Point {
  5. int x;
  6. int y;
  7. int value;
  8. };
  9.  
  10. double variable // <-- пропущена точка с запятой тут
  11.  
  12. // cpp
  13.  
  14. PointType *createPoint(int x, int y, int value) { // <-- ошибка будет сообщена здесь
  15. return nullptr;
  16. }
  17.  
  18. int main()
  19. {
  20. return 0;
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:14:1: error: expected initializer before 'PointType'
 PointType *createPoint(int x, int y, int value) { // <-- ошибка будет сообщена здесь
 ^
stdout
Standard output is empty