Problem payraise
User PlayVoltz
Submission Time 2023-08-23 17:29:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

payraise.cpp: In function ‘int main()’:
payraise.cpp:38:7: error: request for member ‘push’ in ‘q’, which is of non-class type ‘long long int’
38 | q.push(num);
| ^~~~
payraise.cpp:40:14: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘long long int’
40 | while (!q.empty()){
| ^~~~~
payraise.cpp:41:15: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
41 | visited[q.front()] = 1;
| ^~~~~
payraise.cpp:42:11: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
42 | pay[q.front()]+=c;
| ^~~~~
payraise.cpp:43:25: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
43 | for (ll num:graph[q.front()]){
| ^~~~~
payraise.cpp:45:9: error: request for member ‘push’ in ‘q’, which is of non-class type