Record Detail

Compile Error

/in/P5.cpp: In function 'int main()':
/in/P5.cpp:17:5: error: 'sort' was not declared in this scope
     sort(vint0.begin(),vint0.end());
     ^~~~
/in/P5.cpp:17:5: note: suggested alternative: 'qsort'
     sort(vint0.begin(),vint0.end());
     ^~~~
     qsort
/in/P5.cpp:19:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int k=0;k<=vint0.size()/2-1;k++){
                     ~^~~~~~~~~~~~~~~~~~
/in/P5.cpp:34:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=0; i<vint.size(); i++) cout << vint[i] << " "; // vint is the vector containing the array
                   ~^~~~~~~~~~~~

Information

Submit By
Type
Submission
Problem
Final P5
Language
C++
Submit At
2023-12-16 18:55:00
Judged At
2023-12-16 18:55:00
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes