0_0_38587803_9588.cpp: In function 'void generate(int)':
0_0_38587803_9588.cpp:16:16: error: 'n' was not declared in this scope
if (pos == n)
^
0_0_38587803_9588.cpp:18:24: error: 'result' was not declared in this scope
printf("%s\n", result[0]); // 输出涂法
^~~~~~
0_0_38587803_9588.cpp:19:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
return 0;
^
0_0_38587803_9588.cpp:24:24: error: 'result' was not declared in this scope
if (pos > 0 && result[pos - 1][0] == colors[i])
^~~~~~
0_0_38587803_9588.cpp:24:46: error: 'colors' was not declared in this scope
if (pos > 0 && result[pos - 1][0] == colors[i])
^~~~~~
0_0_38587803_9588.cpp:24:46: note: suggested alternative: 'class'
if (pos > 0 && result[pos - 1][0] == colors[i])
^~~~~~
class
0_0_38587803_9588.cpp:26:9: error: 'result' was not declared in this scope
result[pos][0] = colors[i]; // 当前方格涂上颜色
^~~~~~
0_0_38587803_9588.cpp:26:26: error: 'colors' was not declared in this scope
result[pos][0] = colors[i]; // 当前方格涂上颜色
^~~~~~
0_0_38587803_9588.cpp:26:26: note: suggested alternative: 'class'
result[pos][0] = colors[i]; // 当前方格涂上颜色
^~~~~~
class
|