prog.cpp: In function ‘int main()’:
prog.cpp:27:4: error: ‘SPEED’ was not declared in this scope
SPEED
^~~~~
prog.cpp: At global scope:
prog.cpp:34:2: error: expected unqualified-id before ‘{’ token
{/*-----Code-----*/}
^
prog.cpp:35:2: error: ‘cout’ does not name a type; did you mean ‘cosl’?
cout << fixed << setprecision(15);
^~~~
cosl
prog.cpp:38:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
cin >> n;
^~~
sin
prog.cpp:40:2: error: ‘ans’ does not name a type
ans.push_back(n);
^~~
prog.cpp:41:2: error: expected unqualified-id before ‘for’
for (int i = 0; i < ans.size(); i++) {
^~~
prog.cpp:41:18: error: ‘i’ does not name a type
for (int i = 0; i < ans.size(); i++) {
^
prog.cpp:41:34: error: ‘i’ does not name a type
for (int i = 0; i < ans.size(); i++) {
^
prog.cpp:49:6: error: expected constructor, destructor, or type conversion before ‘(’ token
sort(ans.begin(), ans.end());
^
prog.cpp:50:2: error: expected unqualified-id before ‘for’
for (ld i:ans) cout << i << endl;;
^~~
prog.cpp:51:2: error: expected unqualified-id before ‘return’
return 0;
^~~~~~
prog.cpp:52:1: error: expected declaration before ‘}’ token
}
^