Užklausos

Taškai: 0

Compile: FAIL

uzklausos.cpp: In function ‘int main()’: uzklausos.cpp:60:39: error: ‘x’ was not declared in this scope if(chunks[i].back() > x) ats += (intervalai[i].second-intervalai[i].first+1)- (upper_bound(chunks[i].begin(), chunks[i].end(), c) - chunks[i].begin()); ^ uzklausos.cpp:18:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ uzklausos.cpp:31:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); ^ uzklausos.cpp:46:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ uzklausos.cpp:51:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a); ^ uzklausos.cpp:52:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &b); ^ uzklausos.cpp:53:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &c); ^

nr.resulttimemessage