Problem | contestcalc |
---|---|
User | SharpnessChipped |
Submission Time | 2023-06-06 11:34:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:8:2: error: expected initializer before ‘int’
8 | int Scorelist[N];
| ^~~
contestcalc.cpp:10:9: error: ‘Namelist’ was not declared in this scope
10 | cin >>Namelist[i] >>Scorelist[i];
| ^~~~~~~~
contestcalc.cpp:10:23: error: ‘Scorelist’ was not declared in this scope
10 | cin >>Namelist[i] >>Scorelist[i];
| ^~~~~~~~~
contestcalc.cpp:18:7: error: expected ‘(’ before ‘int’
18 | for int m=0; m<N;m++) {
| ^~~
| (
contestcalc.cpp:19:8: error: ‘Namelist’ was not declared in this scope
19 | if (Namelist[m] == Selected[k]) {
| ^~~~~~~~
contestcalc.cpp:20:12: error: ‘Scorelist’ was not declared in this scope
20 | Sum += Scorelist[m];
| ^~~~~~~~~