Problem topical
User tanish
Submission Time 2024-02-21 20:08:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topical.cpp: In function ‘int main()’:
topical.cpp:10:2: error: expected initializer before ‘int’
10 | int ans;
| ^~~
topical.cpp:24:3: error: ‘currentKnowledge’ was not declared in this scope
24 | currentKnowledge[i] = 0;
| ^~~~~~~~~~~~~~~~
topical.cpp:26:8: error: ‘antiC’ was not declared in this scope
26 | while(antiC != i){
| ^~~~~
topical.cpp:26:17: error: ‘i’ was not declared in this scope
26 | while(antiC != i){
| ^
topical.cpp:32:26: error: ‘currentKnowledge’ was not declared in this scope
32 | if(moduleReq[i][j] <= currentKnowledge[j]){
| ^~~~~~~~~~~~~~~~
topical.cpp:37:4: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
37 | ans += 1;
| ^~~
| abs
topical.cpp:39:5: error: ‘currentKnowledge’ was not declared in this scope
39 | currentKnowledge[j] = knowledgeGain[i]