c - Error: called object type int is not a function or function pointer -


i error in c code:

error:called object type int not function or function pointer 

i have looked on answer , everywhere have checked confirms code should working, missing? want assign random numbers 2 different variables. i've commented off errors i'm getting in ide. (note: isnt full code, relevant section)

#include <stdio.h> #include <stdlib.h> #include <time.h>  int main(void){  int k, seed, mines, row, column, boom; int board[9][10]; printf("please enter seed: "); scanf("%d", &seed); getchar(); srand(seed); for(k = 1; k <= mines; k++) {     row = rand() % 8;                 //error:called object type int not function or function pointer     column = rand() % 8;              //error:called object type int not function or function pointer     if(board[row][column] == 0) {         board[row][column] = boom;      } } } 

int k; seed; mines; row; column; 

correct above line follows:

int k, seed, mines, row, column; 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -