Problem cpicsort
User Dubidubidaphdaph
Submission Time 2026-06-23 14:59:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicsort.cpp: In function ‘int main()’:
cpicsort.cpp:9:26: error: expected ‘;’ before ‘)’ token
9 | for (int i=0; i < n, i++){
| ^
| ;
cpicsort.cpp:10:13: error: ‘a’ was not declared in this scope
10 | cin >> a[i];
| ^
cpicsort.cpp:14:11: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
14 | cout >> x >> " ";}
| ~~~~ ^~ ~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
cpicsort.cpp:14:11: note: candidate: ‘operator>>(int, long long int)’ <built-in>
14 | cout >> x >> " ";}
| ~~~~~^~~~
cpicsort.cpp:14:11: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘i