Užklausos

Taškai: 0

Compile: FAIL

uzklausos.cpp: In function ‘void build(int, int*, vir*, int, int)’: uzklausos.cpp:41:101: error: ‘sort’ was not declared in this scope sort(eiles[aukstis].begin() + medis[index].kaire, eiles[aukstis].begin() + medis[index].desine+1); ^ uzklausos.cpp: In function ‘int rask(int, vir*, int, int, int, int)’: uzklausos.cpp:50:198: error: ‘upper_bound’ was not declared in this scope return (medis[index].desine - medis[index].kaire+1) - (upper_bound(eiles[medis[index].aukstis].begin() + medis[index].kaire, eiles[medis[index].aukstis].begin() + medis[index].desine + 1, x) - eiles[medis[index].aukstis].begin() -medis[index].kaire); ^ uzklausos.cpp: In function ‘int main()’: uzklausos.cpp:79:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ uzklausos.cpp:84:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &masyvas[i]); ^ uzklausos.cpp:93:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ uzklausos.cpp:99:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); ^ uzklausos.cpp:99:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); ^ uzklausos.cpp:99:66: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); ^

nr.resulttimemessage