Problem | plagia |
---|---|
User | Pan |
Submission Time | 2023-12-08 10:36:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
plagia.cpp:7:1: error: expected initializer before ‘struct’
7 | struct node{
| ^~~~~~
plagia.cpp:76:8: error: expected constructor, destructor, or type conversion before ‘;’ token
76 | } *root;
| ^
plagia.cpp: In function ‘int main()’:
plagia.cpp:86:3: error: ‘power’ was not declared in this scope
86 | power[i] = (1<<i);
| ^~~~~
plagia.cpp:90:2: error: ‘root’ was not declared in this scope
90 | root = new node(0,n-1);
| ^~~~
plagia.cpp:90:13: error: expected type-specifier before ‘node’
90 | root = new node(0,n-1);
| ^~~~
plagia.cpp:111:17: error: ‘power’ was not declared in this scope
111 | ans+=res[i]*power[i];
| ^~~~~