Problem snowball
User boorlarishitfan666
Submission Time 2023-04-28 23:48:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snowball.cpp: In function ‘int main()’:
snowball.cpp:6:3: error: ‘cin’ was not declared in this scope
6 | cin >> n >> d;
| ^~~
snowball.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <cmath>
+++ |+#include <iostream>
2 | using namespace std;
snowball.cpp:11:3: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
11 | sort (a,a+n);
| ^~~~
| qsort
snowball.cpp:12:3: error: ‘reverse’ was not declared in this scope
12 | reverse (a,a+n);
| ^~~~~~~
snowball.cpp:19:3: error: ‘cout’ was not declared in this scope
19 | cout << sum;
| ^~~~
snowball.cpp:19:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?