Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Vector+Memory_Adv_C++_Tutorial

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.43 sec, absolute running time: 0.07 sec, cpu time: 0.01 sec, memory peak: 3 Mb, absolute service time: 0,51 sec  
edit mode |  history  | discussion
Warning(s):
source_file.cpp: In function ‘int main()’:
source_file.cpp:20:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if(numbers.capacity() != capacity){
                               ^
source_file.cpp:26:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0; i< numbers.size(); i++){
                   ^
Size:20
Capacity:20
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0