0_0_39456862_5021.cpp: In function 'int main()':
0_0_39456862_5021.cpp:5:9: error: 'else' without a previous 'if'
5 | else{
| ^~~~
0_0_39456862_5021.cpp:6:28: error: 'n' was not declared in this scope
6 | for(int i=0; i<n; i++){
| ^
0_0_39456862_5021.cpp:7:17: error: 'v' was not declared in this scope
7 | v.push_back(read());
| ^
0_0_39456862_5021.cpp:7:29: error: 'read' was not declared in this scope
7 | v.push_back(read());
| ^~~~
0_0_39456862_5021.cpp:9:18: error: 'v' was not declared in this scope
9 | sort(v.begin(), v.end());
| ^
0_0_39456862_5021.cpp:9:13: error: 'sort' was not declared in this scope; did you mean 'short'?
9 | sort(v.begin(), v.end());
| ^~~~
| short
0_0_39456862_5021.cpp:12:21: error: 'f' was not declared in this scope
12 | f = 1;break;
| ^
0_0_39456862_5021.cpp:16:12: error: 'f' was not declared in this scope
16 | if(f) printf("YES\n");
| ^
0_0_39456862_5021.cpp:16:15: error: 'printf' was not declared in this scope
16 | if(f) printf("YES\n");
| ^~~~~~
0_0_39456862_5021.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 |
0_0_39456862_5021.cpp:17:14: error: 'printf' was not declared in this scope
17 | else printf("NO\n");
| ^~~~~~
0_0_39456862_5021.cpp:17:14: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39456862_5021.cpp: At global scope:
0_0_39456862_5021.cpp:19:5: error: expected unqualified-id before 'return'
19 | return 0;
| ^~~~~~
0_0_39456862_5021.cpp:20:1: error: expected declaration before '}' token
20 | }
| ^
|