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_39195983_21447.cpp: In function 'int main()':
0_0_39195983_21447.cpp:10:31: error: expected ';' before 'int'
   10 |                 getline(cin,s)
      |                               ^
      |                               ;
   11 |                 int a=0,e=0,i=0,o=0,u=0;
      |                 ~~~            
0_0_39195983_21447.cpp:13:39: error: 'a' was not declared in this scope
   13 |                         if(s[j]=='a') a++;
      |                                       ^
0_0_39195983_21447.cpp:14:39: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'?
   14 |                         if(s[j]=='e') e++;
      |                                       ^
      |                                       std::numbers::e
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/max_size_type.h:37,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:39,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algobase.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numbers:122:27: note: 'std::numbers::e' declared here
  122 |   inline constexpr double e = e_v<double>;
      |                           ^
0_0_39195983_21447.cpp:15:39: error: 'i' was not declared in this scope
   15 |                         if(s[j]=='i') i++;
      |                                       ^
0_0_39195983_21447.cpp:16:39: error: 'o' was not declared in this scope
   16 |                         if(s[j]=='o') o++;
      |                                       ^
0_0_39195983_21447.cpp:17:39: error: 'u' was not declared in this scope
   17 |                         if(s[j]=='u') u++;
      |                                       ^
0_0_39195983_21447.cpp:19:33: error: 'a' was not declared in this scope
   19 |                 cout << "a:" << a << endl;
      |                                 ^
0_0_39195983_21447.cpp:20:33: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'?
   20 |                 cout << "e:" << e << endl;
      |                                 ^
      |                                 std::numbers::e
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numbers:122:27: note: 'std::numbers::e' declared here
  122 |   inline constexpr double e = e_v<double>;
      |                           ^
0_0_39195983_21447.cpp:21:33: error: 'i' was not declared in this scope
   21 |                 cout << "i:" << i << endl;
      |                                 ^
0_0_39195983_21447.cpp:22:33: error: 'o' was not declared in this scope
   22 |                 cout << "o:" << o << endl;
      |                                 ^
0_0_39195983_21447.cpp:23:33: error: 'u' was not declared in this scope
   23 |                 cout << "u:" << u << endl;
      |                                 ^


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-22 15:48:41, Gzip enabled