Pagini recente » Borderou de evaluare (job #1191042) | Borderou de evaluare (job #2551201) | Borderou de evaluare (job #3166386) | Borderou de evaluare (job #37548) | Borderou de evaluare (job #1744785)
Borderou de evaluare (job #1744785)
Raport evaluator
Compilare:
user.cpp: In constructor ‘IntervalTrees::IntervalTrees(const std::vector<int>&)’:
user.cpp:19:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < nums.size(); ++i) {
^
user.cpp: In member function ‘int IntervalTrees::Update(int, int)’:
user.cpp:55:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (position < sums.size()) {
^
user.cpp:59:3: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:78:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.in","r",stdin);
^
user.cpp:79:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.out","w",stdout);
^
user.cpp:81:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &nums_number, &queries_number);
^
user.cpp:85:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &nums[i]);
^
user.cpp:88:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &queries[i].type);
^
user.cpp:90:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &queries[i].x, &queries[i].y);
^
user.cpp:92:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &queries[i].x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 428kb | OK | 10 |
2 | 0ms | 452kb | OK | 10 |
3 | 4ms | 548kb | OK | 10 |
4 | 28ms | 784kb | OK | 10 |
5 | 0ms | Depăşit | Memory limit exceeded. | 0 |
6 | 0ms | Depăşit | Memory limit exceeded. | 0 |
7 | 0ms | Depăşit | Memory limit exceeded. | 0 |
8 | 0ms | Depăşit | Memory limit exceeded. | 0 |
9 | 0ms | Depăşit | Memory limit exceeded. | 0 |
10 | 0ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 40 |