Problem | smurf |
---|---|
User | blob |
Submission Time | 2023-11-21 15:30:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
smurf.cpp: In function ‘int main()’:
smurf.cpp:6:13: error: ‘n’ was not declared in this scope
6 | int number[n];
| ^
smurf.cpp:8:10: error: ‘number’ was not declared in this scope
8 | cin >> number[i];
| ^~~~~~
smurf.cpp:9:45: error: expected primary-expression before ‘)’ token
9 | sort (number[i], number[i]+N, greater<int>);
| ^
smurf.cpp:11:10: error: ‘number’ was not declared in this scope
11 | cout << number [i];
| ^~~~~~
smurf.cpp:11:18: error: ‘i’ was not declared in this scope
11 | cout << number [i];
| ^