stones.cpp: In function ‘int main()’:
stones.cpp:30:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
stones.cpp:34:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x,&y);
^
/tmp/ccxkEdcR.o: In function `update(int, int, int, int, int)':
stones.cpp:(.text+0x53): undefined reference to `data::ch'
stones.cpp:(.text+0x5d): undefined reference to `data::maxi'
stones.cpp:(.text+0x63): undefined reference to `data::mini'
stones.cpp:(.text+0x69): undefined reference to `data::ch'
stones.cpp:(.text+0x83): undefined reference to `data::maxi'
stones.cpp:(.text+0x89): undefined reference to `data::mini'
stones.cpp:(.text+0x91): undefined reference to `data::ch'
/tmp/ccxkEdcR.o: In function `main':
stones.cpp:(.text.startup+0xac): undefined reference to `data::maxi'
stones.cpp:(.text.startup+0xb6): undefined reference to `data::mini'
collect2: error: ld returned 1 exit status