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_29849372_13290.cpp: In function 'int main()':
0_0_29849372_13290.cpp:70:10: error: 'm' was not declared in this scope
   if(k < m || k > m2) { printf("-1\n"); continue; }
          ^
0_0_29849372_13290.cpp:73:49: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    for(int j = 0; j < 26; ++j) nxt[i][j] = cur[j];
                                                 ^
0_0_29849372_13290.cpp:74:14: error: incompatible types in assignment of 'int' to 'int [26]'
    cur[s[i]] = i;
              ^
0_0_29849372_13290.cpp:82:18: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    if(check(cur[i])){
                  ^
0_0_29849372_13290.cpp:43:5: note: initializing argument 1 of 'int check(int)'
 int check(int x){
     ^
0_0_29849372_13290.cpp:86:15: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     sp = cur[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-09-21 15:20:31, Gzip enabled