Answer the question
In order to leave comments, you need to log in
Array name error, although there doesn't seem to be an error, what's the problem?
#include <iostream>
int main(int argc, const char * argv[]) {
int nach, kol,kol2,i,k,b,c=0;
std::cin>>nach>>kol>>kol2;
while (nach!=0) {
for (i=0; i<kol; i++) {
int monstersA[kol];
std::cin>>monstersA[i];
}
for (k=0; k<kol2; k++) {
int monstersB[kol2];
std::cin>>monstersB[k];
}
for (b=0; b<kol*kol2; b++) {
if (monstersA[b] > monstersB[b]) {
}
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question