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_17201437_10202.cpp:1:1: error: expected unqualified-id before '%' token
 %LiFeiteng 

 ^
0_0_17201437_10202.cpp:7:1: error: 'files' does not name a type
     

 ^
0_0_17201437_10202.cpp:11:1: error: expected unqualified-id before 'for'
         disp(['add ' file ' to path!'])

 ^
0_0_17201437_10202.cpp:19:16: error: expected constructor, destructor, or type conversion before '(' token
 % opts.batchsize. Returns a neural network nn with updated activations,

                ^
0_0_17201437_10202.cpp:47:7: error: expected constructor, destructor, or type conversion before '(' token
 assert(rem(numbatches, 1) == 0, 'numbatches must be a integer');

       ^
0_0_17201437_10202.cpp:53:1: error: 'loss' does not name a type
     

 ^
0_0_17201437_10202.cpp:55:1: error: 'loss' does not name a type
     for l = 1 : numbatches

 ^
0_0_17201437_10202.cpp:57:1: error: 'loss' does not name a type
         

 ^
0_0_17201437_10202.cpp:59:1: error: 'opts' does not name a type
         if(nn.inputZeroMaskedFraction ~= 0)

 ^
0_0_17201437_10202.cpp:61:1: error: expected unqualified-id before 'if'
         end

 ^
0_0_17201437_10202.cpp:65:1: error: 'end' does not name a type
         nn = nnff(nn, batch_x, batch_y);

 ^
0_0_17201437_10202.cpp:71:1: error: expected unqualified-id before 'if'
         n = n + 1;

 ^
0_0_17201437_10202.cpp:75:1: error: 'end' does not name a type
     

 ^
0_0_17201437_10202.cpp:83:1: error: 'batchsize' does not name a type
     end

 ^
0_0_17201437_10202.cpp:85:1: error: 'numepochs' does not name a type
     disp(['epoch ' num2str(i) '/' num2str(opts.numepochs) '. Took ' num2str(t) ' seconds' '. Mean squared error on training set is ' num2str(mean(L((n-numbatches):(n-1))))]);

 ^
0_0_17201437_10202.cpp:89:1: error: 'numbatches' does not name a type
 #include<iostream>

 ^
0_0_17201437_10202.cpp:93:7: error: expected constructor, destructor, or type conversion before '(' token
 using namespace std;

       ^
0_0_17201437_10202.cpp:97:1: error: 'L' does not name a type
 int map[510][510][5];     //��ͼ������һ�������������ӵı�Ե�Ƿ���ǽ��map[i][j][]����ij�������ӵ����������Ƿ���ǽ

 ^
0_0_17201437_10202.cpp:99:1: error: 'n' does not name a type
 

 ^
0_0_17201437_10202.cpp:101:1: error: expected unqualified-id before 'for'
 {

 ^
0_0_17201437_10202.cpp:107:5: error: 'kk' does not name a type
 {

     ^
0_0_17201437_10202.cpp:109:5: error: expected unqualified-id before 'for'
     for(i = 0; i < 510; i++)   //��ʼ��ȫΪǽ

     ^
0_0_17201437_10202.cpp:115:9: error: expected unqualified-id before '%' token
     }

         ^
0_0_17201437_10202.cpp:121:9: error: 'end' does not name a type
     p.fx = 1;     //p������λ�úͷ��򱣴�

         ^
0_0_17201437_10202.cpp:129:9: error: 'nn' does not name a type
                 scanf("%d",&k);

         ^
0_0_17201437_10202.cpp:131:9: error: 'nn' does not name a type
                 map[q+1][j][2] = k;  //�����±�

         ^
0_0_17201437_10202.cpp:133:9: error: 'nn' does not name a type
             q++;

         ^
0_0_17201437_10202.cpp:137:10: error: expected constructor, destructor, or type conversion before '(' token
             for(j = 0; j < c-1; j++)

          ^
0_0_17201437_10202.cpp:141:9: error: 'n' does not name a type
                 map[q][j+1][3] = k;  //���ӵ�����

         ^
0_0_17201437_10202.cpp:143:5: error: 'end' does not name a type
         }

     ^
0_0_17201437_10202.cpp:151:5: error: expected unqualified-id before 'if'
     Node next;

     ^
0_0_17201437_10202.cpp:157:9: error: expected unqualified-id before 'else'
             {

         ^
0_0_17201437_10202.cpp:161:9: error: 'end' does not name a type
                 if(dis[next.x][next.y][0]==0)   //�鿴��һ��������ǰ�߹�û

         ^
0_0_17201437_10202.cpp:165:5: error: 'end' does not name a type
                 Dfs(next);

     ^
0_0_17201437_10202.cpp:171:5: error: 'nn' does not name a type
             if(map[now.x][now.y][4]==0)

     ^
0_0_17201437_10202.cpp:173:1: error: 'end' does not name a type
                 next.x = now.x;

 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17201437_10202.cpp:177:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:95:30: error: field 'nullptr_t' has incomplete type 'std::__exception_ptr::exception_ptr'
       exception_ptr(nullptr_t) noexcept
                              ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:95:30: error: expected ';' at end of member declaration
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:95:32: error: expected unqualified-id before 'noexcept'
       exception_ptr(nullptr_t) noexcept
                                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17201437_10202.cpp:177:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:35: error: '__gnu_cxx::__is_null_pointer' declared as an 'inline' variable
   __is_null_pointer(std::nullptr_t)
                                   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:155:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
     __is_null_pointer(_Type)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/type_traits.h:160:21: error: 'nullptr_t' is not a member of 'std'
   __is_null_pointer(std::nullptr_t)
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17201437_10202.cpp:177:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:294:31: error: 'std::size_t' has not been declared
   template<typename _Tp, std::size_t _Size>
                               ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:493:37: error: 'nullptr_t' is not a member of 'std'
     struct __is_null_pointer_helper<std::nullptr_t>
                                     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:493:37: error: 'nullptr_t' is not a member of 'std'
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:493:51: error: template argument 1 is invalid
     struct __is_null_pointer_helper<std::nullptr_t>
                                                   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1336:32: error: 'size_t' is not a member of 'std'
     : public integral_constant<std::size_t, __alignof__(_Tp)> { };
                                ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1336:32: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/crtdefs.h:10:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/wchar.h:9,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cwchar:44,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17201437_10202.cpp:177:
GCC4.9.2/x86_64-w64-mingw32/include/_mingw.h:377:44: note:   'size_t'
 __MINGW_EXTENSION typedef unsigned __int64 size_t;
                                            ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 f


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-12-02 09:27:27, Gzip enabled