Problem | sort |
---|---|
User | om2024 |
Submission Time | 2024-06-19 09:51:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sort.cpp: In function ‘int main()’:
sort.cpp:7:11: error: expected ‘;’ before ‘==’ token
7 | for(int i == 0; i < n; i++) {
| ^~~
| ;
sort.cpp:7:12: error: expected primary-expression before ‘==’ token
7 | for(int i == 0; i < n; i++) {
| ^~
sort.cpp:7:23: error: expected ‘)’ before ‘;’ token
7 | for(int i == 0; i < n; i++) {
| ~ ^
| )
sort.cpp:7:25: error: ‘i’ was not declared in this scope
7 | for(int i == 0; i < n; i++) {
| ^
sort.cpp:10:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘void’)
10 | cout << sort(arr,arr+n)
| ~~~~ ^~ ~~~~~~~~~~~~~~~
| | |
| | void
| std::ostream {aka std::basic_ostream<char>}
In file included from