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_17202770_30814.cpp:73:2: error: stray '#' in program
 }#include <cstdio>
  ^
0_0_17202770_30814.cpp:141:2: error: stray '#' in program
 }#include <stdio.h>
  ^
0_0_17202770_30814.cpp: In function 'void gn(int&)':
0_0_17202770_30814.cpp:2:29: error: 'getchar' was not declared in this scope
     char c;while((c=getchar())<'0'||c>'9');x=c-'0';
                             ^
0_0_17202770_30814.cpp:3:22: error: 'getchar' was not declared in this scope
     while((c=getchar())>='0'&&c<='9')x=x*10+c-'0';
                      ^
0_0_17202770_30814.cpp: At global scope:
0_0_17202770_30814.cpp:73:3: error: 'include' does not name a type
 }#include <cstdio>
   ^
0_0_17202770_30814.cpp:80:13: error: redefinition of 'char ans [205]'
 char ans[205];
             ^
0_0_17202770_30814.cpp:12:6: note: 'char ans [205]' previously declared here
 char ans[205];
      ^
0_0_17202770_30814.cpp:81:11: error: redefinition of 'char t [205]'
 char t[205];
           ^
0_0_17202770_30814.cpp:13:6: note: 'char t [205]' previously declared here
 char t[205];
      ^
0_0_17202770_30814.cpp: In function 'void fun(char*, char*)':
0_0_17202770_30814.cpp:83:6: error: redefinition of 'void fun(char*, char*)'
 void fun(char ans[], char t[]) {
      ^
0_0_17202770_30814.cpp:15:6: note: 'void fun(char*, char*)' previously defined here
 void fun(char ans[], char t[]) {
      ^
0_0_17202770_30814.cpp: In function 'void swap(char*)':
0_0_17202770_30814.cpp:90:6: error: redefinition of 'void swap(char*)'
 void swap(char t[]) {
      ^
0_0_17202770_30814.cpp:22:6: note: 'void swap(char*)' previously defined here
 void swap(char t[]) {
      ^
0_0_17202770_30814.cpp: In function 'void add(char*, char*, int)':
0_0_17202770_30814.cpp:99:6: error: redefinition of 'void add(char*, char*, int)'
 void add(char ans[], char t[], int B) {
      ^
0_0_17202770_30814.cpp:31:6: note: 'void add(char*, char*, int)' previously defined here
 void add(char ans[], char t[], int B) {
      ^
0_0_17202770_30814.cpp: In function 'void print(char*)':
0_0_17202770_30814.cpp:113:6: error: redefinition of 'void print(char*)'
 void print(char ans[]) {
      ^
0_0_17202770_30814.cpp:45:6: note: 'void print(char*)' previously defined here
 void print(char ans[]) {
      ^
0_0_17202770_30814.cpp: In function 'int main()':
0_0_17202770_30814.cpp:126:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_17202770_30814.cpp:58:5: note: 'int main()' previously defined here
 int main() {
     ^
0_0_17202770_30814.cpp: At global scope:
0_0_17202770_30814.cpp:141:3: error: 'include' does not name a type
 }#include <stdio.h>
   ^
0_0_17202770_30814.cpp:147:37: error: conflicting declaration 'char ans [205][205]'
 char tmp[maxn][maxn], ans[maxn][maxn], ch[50];
                                     ^
0_0_17202770_30814.cpp:12:6: note: previous declaration as 'char ans [205]'
 char ans[205];
      ^
0_0_17202770_30814.cpp: In function 'int main()':
0_0_17202770_30814.cpp:159:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_17202770_30814.cpp:58:5: note: 'int main()' previously defined here
 int main() {
     ^
0_0_17202770_30814.cpp:170:13: error: invalid types 'char[int]' for array subscript
     ans[i][j] = tmp[i][len-1-j];
             ^
0_0_17202770_30814.cpp:178:21: error: invalid types 'char[int]' for array subscript
     t += to[ans[j][i]];
                     ^


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-06-16 06:13:58, Gzip enabled