GNU C++17 gives me memory Limit but MS C++ 17 accepted it, any idea ?

Правка en1, от hessam94, 2023-01-10 22:03:50

Hello guys,

please take a look at this two submissions, developed on Visual Studio 2019 C++, both code are exactly same:
1- GNU 17 2- MSC++ 17

So I have two questions:
1- what is the difference between these two compilers in terms of memory, at least here.
2- why this amount of memory? I checked inside my code to see how much is taken , it is not that much shown on my submissions. for test case #13 which i get MemLimit, there is only 1 * 1000000 vector. ok, so my vector<queue< int >> is nothing but 4M byte, it should never reach to 256MB ?? I always submitted to GNU because of faster time, never had memory issue.

Could you help me to learn this part.

Thanks
Hessam

Теги gnu c++, ms c++, memory limit, vector

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский hessam94 2023-01-10 22:03:50 893 Initial revision (published)