Problem | sort |
---|---|
User | Ant1234567890 |
Submission Time | 2025-06-14 10:11:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sort.cpp: In function ‘int main()’:
sort.cpp:7:2: error: expected ‘,’ or ‘;’ before ‘for’
7 | for(i=0;i<x;i++){
| ^~~
sort.cpp:7:17: error: expected ‘;’ before ‘)’ token
7 | for(i=0;i<x;i++){
| ^
| ;
sort.cpp:12:6: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>’)
12 | cout<<A;
| ~~~~^~~
| | |
| | std::vector<int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from sort.cpp:1:
/usr/include/c++/9/ostream:108:7: note