foo.cc: In member function 'char Col::getcol()':
foo.cc:26:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(R==0&&B==0&&G==0) return 'K';if(R==0&&B==0&&G==1) return 'G';
^~
foo.cc:26:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(R==0&&B==0&&G==0) return 'K';if(R==0&&B==0&&G==1) return 'G';
^~
foo.cc:27:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(R==0&&B==1&&G==0) return 'B';if(R==0&&B==1&&G==1) return 'C';
^~
foo.cc:27:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(R==0&&B==1&&G==0) return 'B';if(R==0&&B==1&&G==1) return 'C';
^~
foo.cc:28:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(R==1&&B==0&&G==0) return 'R';if(R==1&&B==0&&G==1) return 'Y';
^~
foo.cc:28:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(R==1&&B==0&&G==0) return 'R';if(R==1&&B==0&&G==1) return 'Y';
^~
foo.cc:29:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(R==1&&B==1&&G==0) return 'P';if(R==1&&B==1&&G==1) return 'W';
^~
foo.cc:29:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(R==1&&B==1&&G==0) return 'P';if(R==1&&B==1&&G==1) return 'W';
^~
foo.cc: In function 'void init()':
foo.cc:237:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
foo.cc:238:51: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=n;i++) for(int j=1;j<=m;j++) scanf("%d",&cnt[i][j]);
~~~~~^~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务