Kalnai

Taškai: 0

Compile: FAIL

mountain.cpp: In member function ‘void segtree::set(int, int, int)’: mountain.cpp:58:24: error: return-statement with a value, in function returning 'void' [-fpermissive] if(fr == to) return 55; ^ mountain.cpp: In function ‘int main()’: mountain.cpp:101:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %d", &n); ^ mountain.cpp:103:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] char cur; scanf(" %1c", &cur); ^ mountain.cpp:106:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %d %d", &s[qn], &f[qn]); ^ mountain.cpp:111:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %d", &ch[qn++]); ^

nr.resulttimemessage