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_39593869_16321.cpp:5:1: error: 'll' does not name a type
    5 | ll ans;
      | ^~
0_0_39593869_16321.cpp: In function 'int main()':
0_0_39593869_16321.cpp:10:27: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   10 |                 memset(ha,x,sizeof(ha))
      |                           ^
      |                           |
      |                           int*
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cstring:42,
                 from .\stdc++.h:121:
gcc-13.1.0/x86_64-w64-mingw32/include/string.h:53:40: note:   initializing argument 2 of 'void* memset(void*, int, size_t)'
   53 |   void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
      |                                    ~~~~^~~~
0_0_39593869_16321.cpp:10:40: error: expected ';' before 'for'
   10 |                 memset(ha,x,sizeof(ha))
      |                                        ^
      |                                        ;
   11 |                 for(int i = 1; i <= 100; i++)
      |                 ~~~                     
0_0_39593869_16321.cpp:11:32: error: 'i' was not declared in this scope
   11 |                 for(int i = 1; i <= 100; i++)
      |                                ^
0_0_39593869_16321.cpp:12:40: error: 'j' was not declared in this scope
   12 |                         for(int j = 1; j <= 100; j++){
      |                                        ^
0_0_39593869_16321.cpp:16:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |                 ans = 0;
      |                 ^~~
      |                 abs
0_0_39593869_16321.cpp:23:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |                 cout<<ans*16<<endl;
      |                 ^~~~
      |                 std::cout
In file included from .\stdc++.h:146:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
0_0_39593869_16321.cpp:23:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |                 cout<<ans*16<<endl;
      |                               ^~~~
      |                               std::endl
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/unique_ptr.h:42,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/memory:78,
                 from .\stdc++.h:56:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:735:5: note: 'std::endl' declared here
  735 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~


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-22 23:51:50, Gzip enabled