0_0_14636639_4867.cpp:7:1: error: 'll' does not name a type
ll a[N], b[N], n, m;
^
0_0_14636639_4867.cpp:9:10: error: 'll' was not declared in this scope
bool cmp(ll a, ll b) {
^
0_0_14636639_4867.cpp:9:16: error: 'll' was not declared in this scope
bool cmp(ll a, ll b) {
^
0_0_14636639_4867.cpp:9:20: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(ll a, ll b) {
^
0_0_14636639_4867.cpp:9:22: error: expected ',' or ';' before '{' token
bool cmp(ll a, ll b) {
^
0_0_14636639_4867.cpp: In function 'int main()':
0_0_14636639_4867.cpp:16:22: error: 'n' was not declared in this scope
scanf("%lld%lld", &n, &m);
^
0_0_14636639_4867.cpp:16:26: error: 'm' was not declared in this scope
scanf("%lld%lld", &n, &m);
^
0_0_14636639_4867.cpp:18:19: error: 'a' was not declared in this scope
scanf("%lld", &a[i]);
^
0_0_14636639_4867.cpp:20:19: error: 'b' was not declared in this scope
scanf("%lld", &b[i]);
^
0_0_14636639_4867.cpp:21:8: error: 'a' was not declared in this scope
sort(a, a + n, cmp);
^
0_0_14636639_4867.cpp:22:8: error: 'b' was not declared in this scope
sort(b, b + m);
^
0_0_14636639_4867.cpp:23:3: error: 'll' was not declared in this scope
ll sum = 0;
^
0_0_14636639_4867.cpp:27:4: error: 'sum' was not declared in this scope
sum += a[i] - b[i];
^
0_0_14636639_4867.cpp:29:20: error: 'sum' was not declared in this scope
printf("%lld\n", sum);
^
|