F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-15 09:49:46, Gzip enabled