Borderou de evaluare (job #1744785)

Utilizator Luncasu_VictorVictor Luncasu Luncasu_Victor Data 20 august 2016 14:37:20
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 40

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
10ms428kbOK10
20ms452kbOK10
34ms548kbOK10
428ms784kbOK10
50msDepăşitMemory limit exceeded.0
60msDepăşitMemory limit exceeded.0
70msDepăşitMemory limit exceeded.0
80msDepăşitMemory limit exceeded.0
90msDepăşitMemory limit exceeded.0
100msDepăşitMemory limit exceeded.0
Punctaj total40

Ceva nu functioneaza?