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_38490843_2480.cpp:1:4: error: stray '#' in program
 111#include <bits/stdc++.h>
    ^
0_0_38490843_2480.cpp:1:1: error: expected unqualified-id before numeric constant
 111#include <bits/stdc++.h>
 ^
0_0_38490843_2480.cpp: In function 'void work()':
0_0_38490843_2480.cpp:9:19: error: 'scanf' was not declared in this scope
     scanf ("%s", s);
                   ^
0_0_38490843_2480.cpp:10:24: error: 'strlen' was not declared in this scope
     int len = strlen (s);
                        ^
0_0_38490843_2480.cpp:11:5: error: 'vector' was not declared in this scope
     vector<int>a[27];
     ^
0_0_38490843_2480.cpp:11:12: error: expected primary-expression before 'int'
     vector<int>a[27];
            ^
0_0_38490843_2480.cpp:12:35: error: 'a' was not declared in this scope
     for (int i = 1; i <= 26; i++) a[i].push_back (0);
                                   ^
0_0_38490843_2480.cpp:14:9: error: 'a' was not declared in this scope
         a[s[i] - 'a' + 1].push_back (i + 1);
         ^
0_0_38490843_2480.cpp:18:9: error: 'a' was not declared in this scope
         a[i].push_back (len + 1);
         ^
0_0_38490843_2480.cpp:29:26: error: 'printf' was not declared in this scope
     printf ("%lld\n", ans);
                          ^
0_0_38490843_2480.cpp: In function 'int main()':
0_0_38490843_2480.cpp:34:20: error: 'scanf' was not declared in this scope
     scanf ("%d", &T);
                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 17:35:59, Gzip enabled