Submission #637803

#TimeUsernameProblemLanguageResultExecution timeMemory
637803beaconmcJob Scheduling (CEOI12_jobs)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

typedef long long ll;
using namespace std;
using namespace __gnu_pbds;

#define FOR(i, x, y) for(ll i=x; i<y; i++)
#define FORNEG(i, x, y) for(ll i=x; i>y; i--)
#define ordered_set tree<ll, null_type,less_equal<ll>, rb_tree_tag,tree_order_statistics_node_update>
#define fast() ios_base::sync_with_stdio(false);cin.tie(NULL)
ll temp;
ll n,d,m;
int main(){
	cin >> n >> d >> m;
	ll lis[n];
	FOR(i,0,n){
		cin >> temp;
		lis[temp-1] += 1
	}
	
	

}

Compilation message (stderr)

jobs.cpp: In function 'int main()':
jobs.cpp:20:19: error: expected ';' before '}' token
   20 |   lis[temp-1] += 1
      |                   ^
      |                   ;
   21 |  }
      |  ~