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_21579551_20496.cpp: In function 'int Max(int, int)':
0_0_21579551_20496.cpp:13:2: error: expected '(' before '{' token
  {
  ^
0_0_21579551_20496.cpp:14:3: error: 'mov' was not declared in this scope
   mov eax, a;
   ^
0_0_21579551_20496.cpp:15:7: error: expected ';' before 'ebx'
   mov ebx, b;
       ^
0_0_21579551_20496.cpp:16:3: error: 'cmp' was not declared in this scope
   cmp eax, ebx;
   ^
0_0_21579551_20496.cpp:17:3: error: 'cmovl' was not declared in this scope
   cmovl eax, ebx;
   ^
0_0_21579551_20496.cpp:18:7: error: expected ';' before 'a'
   mov a, eax;
       ^
0_0_21579551_20496.cpp: In function 'int main()':
0_0_21579551_20496.cpp:29:2: error: expected '(' before '{' token
  {
  ^
0_0_21579551_20496.cpp:31:3: error: 'lea' was not declared in this scope
   lea eax, nums;
   ^
0_0_21579551_20496.cpp:32:3: error: 'push' was not declared in this scope
   push eax;
   ^
0_0_21579551_20496.cpp:33:8: error: expected ';' before 'GETNUM'
   push GETNUM;
        ^
0_0_21579551_20496.cpp:34:3: error: 'call' was not declared in this scope
   call scanf;
   ^
0_0_21579551_20496.cpp:35:3: error: 'add' was not declared in this scope
   add esp, 8;
   ^
0_0_21579551_20496.cpp:36:3: error: 'mov' was not declared in this scope
   mov eax, nums;
   ^
0_0_21579551_20496.cpp:37:3: error: 'test' was not declared in this scope
   test eax, eax;
   ^
0_0_21579551_20496.cpp:38:3: error: 'jz' was not declared in this scope
   jz END;
   ^
0_0_21579551_20496.cpp:39:3: error: expected primary-expression before 'xor' token
   xor ecx, ecx;
   ^
0_0_21579551_20496.cpp:39:7: error: 'ecx' was not declared in this scope
   xor ecx, ecx;
       ^
0_0_21579551_20496.cpp:41:3: error: 'cmp' was not declared in this scope
   cmp ecx, nums;
   ^
0_0_21579551_20496.cpp:42:3: error: 'jge' was not declared in this scope
   jge GETEND;
   ^
0_0_21579551_20496.cpp:43:7: error: expected ';' before 'eax'
   mov eax, ecx;
       ^
0_0_21579551_20496.cpp:44:3: error: 'shl' was not declared in this scope
   shl eax, 2;
   ^
0_0_21579551_20496.cpp:45:7: error: expected ';' before 'eax'
   add eax, num;
       ^
0_0_21579551_20496.cpp:48:8: error: expected ';' before 'ecx'
   push ecx;
        ^
0_0_21579551_20496.cpp:49:8: error: expected ';' before 'eax'
   push eax;
        ^
0_0_21579551_20496.cpp:50:8: error: expected ';' before 'GETNUM'
   push GETNUM;
        ^
0_0_21579551_20496.cpp:51:8: error: expected ';' before 'scanf'
   call scanf;
        ^
0_0_21579551_20496.cpp:52:7: error: expected ';' before 'esp'
   add esp, 8;
       ^
0_0_21579551_20496.cpp:53:3: error: 'pop' was not declared in this scope
   pop ecx;
   ^
0_0_21579551_20496.cpp:55:3: error: 'inc' was not declared in this scope
   inc ecx;
   ^
0_0_21579551_20496.cpp:56:3: error: 'jmp' was not declared in this scope
   jmp GETSTART;
   ^
0_0_21579551_20496.cpp:58:3: error: expected primary-expression before 'xor' token
   xor ecx, ecx;
   ^
0_0_21579551_20496.cpp:60:7: error: expected ';' before 'ecx'
   cmp ecx, nums;
       ^
0_0_21579551_20496.cpp:61:7: error: expected ';' before 'LOOP1END'
   jge LOOP1END;
       ^
0_0_21579551_20496.cpp:62:7: error: expected ';' before 'eax'
   mov eax, ecx;
       ^
0_0_21579551_20496.cpp:63:7: error: expected ';' before 'eax'
   shl eax, 2;
       ^
0_0_21579551_20496.cpp:64:7: error: expected ';' before 'edx'
   mov edx, eax;
       ^
0_0_21579551_20496.cpp:65:7: error: expected ';' before 'edx'
   add edx, num;
       ^
0_0_21579551_20496.cpp:66:7: error: expected ';' before 'ebx'
   mov ebx, [edx];
       ^
0_0_21579551_20496.cpp:67:7: error: expected ';' before 'edx'
   mov edx, eax;
       ^
0_0_21579551_20496.cpp:68:7: error: expected ';' before 'edx'
   add edx, values;
       ^
0_0_21579551_20496.cpp:69:7: error: 'edx' was not declared in this scope
   mov[edx], ebx;
       ^
0_0_21579551_20496.cpp:69:13: error: 'ebx' was not declared in this scope
   mov[edx], ebx;
             ^
0_0_21579551_20496.cpp:71:3: error: expected primary-expression before 'xor' token
   xor edx, edx;
   ^
0_0_21579551_20496.cpp:72:3: error: expected primary-expression before 'xor' token
   xor ebx, ebx;//MAX
   ^
0_0_21579551_20496.cpp:73:7: error: expected ';' before 'tmp1'
   mov tmp1, -1;
       ^
0_0_21579551_20496.cpp:75:7: error: expected ';' before 'edx'
   cmp edx, ecx;
       ^
0_0_21579551_20496.cpp:76:7: error: expected ';' before 'LOOP2END'
   jge LOOP2END;
       ^
0_0_21579551_20496.cpp:77:8: error: expected ';' before 'eax'
   push eax;
        ^
0_0_21579551_20496.cpp:78:8: error: expected ';' before 'ecx'
   push ecx;
        ^
0_0_21579551_20496.cpp:79:7: error: expected ';' before 'ecx'
   mov ecx, edx;
       ^
0_0_21579551_20496.cpp:80:7: error: expected ';' before 'ecx'
   shl ecx, 2;
       ^
0_0_21579551_20496.cpp:81:7: error: expected ';' before 'eax'
   add eax, num;
       ^
0_0_21579551_20496.cpp:82:7: error: expected ';' before 'ecx'
   add ecx, num;
       ^
0_0_21579551_20496.cpp:83:7: error: expected ';' before 'eax'
   mov eax, [eax];
       ^
0_0_21579551_20496.cpp:84:7: error: expected ';' before 'ecx'
   mov ecx, [ecx];
       ^
0_0_21579551_20496.cpp:86:7: error: expected ';' before 'eax'
   cmp eax, ecx;
       ^
0_0_21579551_20496.cpp:87:3: error: 'jle' was not declared in this scope
   jle IFEND;
   ^
0_0_21579551_20496.cpp:88:7: error: expected ';' before 'ebx'
   cmp ebx, ecx;
       ^
0_0_21579551_20496.cpp:89:7: error: expected ';' before 'IFEND'
   jge IFEND;
       ^
0_0_21579551_20496.cpp:90:7: error: expected ';' before 'ebx'
   mov ebx, ecx;
       ^
0_0_21579551_20496.cpp:91:7: error: expected ';' before 'tmp1'
   mov tmp1, edx;
       ^
0_0_21579551_20496.cpp:95:7: error: expected ';' before 'edx'
   inc edx;
       ^
0_0_21579551_20496.cpp:96:7: error: expected ';' before 'ecx'
   pop ecx;
       ^
0_0_21579551_20496.cpp:97:7: error: expected ';' before 'eax'
   pop eax;
       ^
0_0_21579551_20496.cpp:98:7: error: expected ';' before 'LOOP2START'
   jmp LOOP2START;
       ^
0_0_21579551_20496.cpp:100:7: error: expected ';' before 'tmp1'
   cmp tmp1, -1;
       ^
0_0_21579551_20496.cpp:101:3: error: 'je' was not declared in this scope
   je NOTNEGONE;
   ^
0_0_21579551_20496.cpp:102:7: error: expected ';' before 'eax'
   mov eax, ecx;
       ^
0_0_21579551_20496.cpp:103:7: error: expected ';' before 'eax'
   shl eax, 2;
       ^
0_0_21579551_20496.cpp:104:7: error: expected ';' before 'eax'
   add eax, values;
       ^
0_0_21579551_20496.cpp:105:7: error: expected ';' before 'edx'
   mov edx, [eax];
       ^
0_0_21579551_20496.cpp:106:7: error: expected ';' before 'ebx'
   mov ebx, tmp1;
       ^
0_0_21579551_20496.cpp:107:7: error: expected ';' before 'ebx'
   shl ebx, 2;
       ^
0_0_21579551_20496.cpp:108:7: error: expected ';' before 'ebx'
   add ebx, values;
       ^
0_0_21579551_20496.cpp:109:7: error: expected ';' before 'edx'
   add edx, [ebx];
       ^
0_0_21579551_20496.cpp:110:7: error: 'eax' was not declared in this scope
   mov[eax], edx;
       ^
0_0_21579551_20496.cpp:112:7: error: expected ';' before 'ecx'
   inc ecx;
       ^
0_0_21579551_20496.cpp:113:7: error: expected ';' before 'LOOP1START'
   jmp LOOP1START;
       ^
0_0_21579551_20496.cpp:115:3: error: expected primary-expression before 'xor' token
   xor ecx, ecx;
   ^
0_0_21579551_20496.cpp:116:7: error: expected ';' before 'eax'
   mov eax, 0x80000000;//Max
       ^
0_0_21579551_20496.cpp:118:7: error: expected ';' before 'ecx'
   cmp ecx, nums;
       ^
0_0_21579551_20496.cpp:119:7: error: expected ';' before 'FINDEND'
   jge FINDEND;
       ^
0_0_21579551_20496.cpp:120:7: error: expected ';' before 'edx'
   mov edx, ecx;
       ^
0_0_21579551_20496.cpp:121:7: error: expected ';' before 'edx'
   shl edx, 2;
       ^
0_0_21579551_20496.cpp:122:7: error: expected ';' before 'edx'
   add edx, values;
       ^
0_0_21579551_20496.cpp:124:8: error: expected ';' before 'ecx'
   push ecx;
        ^
0_0_21579551_20496.cpp:125:8: error: expected ';' before 'eax'
   push eax;
        ^
0_0_21579551_20496.cpp:127:8: error: expected ';' before 'Max'
   call Max;
        ^
0_0_21579551_20496.cpp:128:7: error: expected ';' before 'esp'
   add esp, 8;
       ^
0_0_21579551_20496.cpp:129:7: error: expected ';' before 'ecx'
   pop ecx;
       ^
0_0_21579551_20496.cpp:130:7: error: expected ';' before 'ecx'
   inc ecx;
       ^
0_0_21579551_20496.cpp:131:7: error: expected ';' before 'FINDSTART'
   jmp FINDSTART;
       ^
0_0_21579551_20496.cpp:133:8: error: expected ';' before 'eax'
   push eax;
        ^
0_0_21579551_20496.cpp:134:8: error: expected ';' before 'pr'
   push pr;
        ^
0_0_21579551_20496.cpp:135:8: error: expected ';' before 'printf'
   call printf;
        ^
0_0_21579551_20496.cpp:136:7: error: expected ';' before 'esp'
   add esp, 8;
       ^
0_0_21579551_20496.cpp:137:7: error: expected ';' before 'DEADSTART'
   jmp DEADSTART;
       ^
0_0_21579551_20496.cpp:139:2: error: expected primary-expression before '}' token
  }
  ^


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-29 22:02:14, Gzip enabled