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_9774060_9818.cpp:1:19: gmpxx.h: No such file or directory
0_0_9774060_9818.cpp:16:18: sha1.h: No such file or directory
0_0_9774060_9818.cpp:23: error: `mpz_class' does not name a type
0_0_9774060_9818.cpp:24: error: `mpz_class' does not name a type
0_0_9774060_9818.cpp:28: error: `mpz_class' does not name a type
0_0_9774060_9818.cpp:29: error: `mpz_class' does not name a type
0_0_9774060_9818.cpp: In function `std::ostream& operator<<(std::ostream&, clave_publica)':
0_0_9774060_9818.cpp:36: error: 'const struct clave_publica' has no member named 'n'
0_0_9774060_9818.cpp:36: error: 'const struct clave_publica' has no member named 'e'
0_0_9774060_9818.cpp: In function `std::ostream& operator<<(std::ostream&, clave_privada)':
0_0_9774060_9818.cpp:41: error: 'const struct clave_privada' has no member named 'n'
0_0_9774060_9818.cpp:41: error: 'const struct clave_privada' has no member named 'd'
0_0_9774060_9818.cpp: At global scope:
0_0_9774060_9818.cpp:92: error: expected `,' or `...' before '&' token
0_0_9774060_9818.cpp:92: error: ISO C++ forbids declaration of `mpz_class' with no type
0_0_9774060_9818.cpp: In function `std::string toHex(int)':
0_0_9774060_9818.cpp:94: error: `n' undeclared (first use this function)
0_0_9774060_9818.cpp:94: error: (Each undeclared identifier is reported only once for each function it appears in.)
0_0_9774060_9818.cpp: In function `octet_string sha(octet_string)':
0_0_9774060_9818.cpp:113: error: `sha1' has not been declared
0_0_9774060_9818.cpp:113: error: `calc' undeclared (first use this function)
0_0_9774060_9818.cpp: At global scope:
0_0_9774060_9818.cpp:122: error: `mpz_class' has not been declared
0_0_9774060_9818.cpp:122: error: ISO C++ forbids declaration of `result' with no type
0_0_9774060_9818.cpp: In function `void OS2IP(octet_string, int&)':
0_0_9774060_9818.cpp:125: error: `mpz_class' undeclared (first use this function)
0_0_9774060_9818.cpp:125: error: expected `;' before "tmp"
0_0_9774060_9818.cpp:130: error: `tmp' undeclared (first use this function)
0_0_9774060_9818.cpp:130: error: `mpz_ui_pow_ui' undeclared (first use this function)
0_0_9774060_9818.cpp: At global scope:
0_0_9774060_9818.cpp:136: error: expected `,' or `...' before "n"
0_0_9774060_9818.cpp:136: error: ISO C++ forbids declaration of `mpz_class' with no type
0_0_9774060_9818.cpp: In function `octet_string I2OSP(int)':
0_0_9774060_9818.cpp:138: error: expected `;' before "tmp"
0_0_9774060_9818.cpp:140: error: `tmp' undeclared (first use this function)
0_0_9774060_9818.cpp:140: error: `length' undeclared (first use this function)
0_0_9774060_9818.cpp:140: error: `mpz_ui_pow_ui' undeclared (first use this function)
0_0_9774060_9818.cpp:141: error: `n' undeclared (first use this function)
0_0_9774060_9818.cpp:147: error: `q' undeclared (first use this function)
0_0_9774060_9818.cpp:149: error: `r' undeclared (first use this function)
0_0_9774060_9818.cpp:149: error: `mpz_tdiv_qr_ui' undeclared (first use this function)
0_0_9774060_9818.cpp: In function `void generar_claves(unsigned int, unsigned int, clave_privada&, clave_publica&)':
0_0_9774060_9818.cpp:167: error: `gmp_randclass' undeclared (first use this function)
0_0_9774060_9818.cpp:167: error: expected `;' before "r"
0_0_9774060_9818.cpp:168: error: `r' undeclared (first use this function)
0_0_9774060_9818.cpp:171: error: `mpz_class' undeclared (first use this function)
0_0_9774060_9818.cpp:171: error: expected `;' before "p"
0_0_9774060_9818.cpp:172: error: expected `;' before "e"
0_0_9774060_9818.cpp:179: error: expected `;' before "gcd_buffer"
0_0_9774060_9818.cpp:182: error: `p' undeclared (first use this function)
0_0_9774060_9818.cpp:185: error: `mpz_setbit' undeclared (first use this function)
0_0_9774060_9818.cpp:189: error: `mpz_nextprime' undeclared (first use this function)
0_0_9774060_9818.cpp:191: error: `gcd_buffer' undeclared (first use this function)
0_0_9774060_9818.cpp:193: error: `e' undeclared (first use this function)
0_0_9774060_9818.cpp:193: error: `mpz_gcd' undeclared (first use this function)
0_0_9774060_9818.cpp:197: error: `q' undeclared (first use this function)
0_0_9774060_9818.cpp:213: error: expected `;' before "n"
0_0_9774060_9818.cpp:214: error: expected `;' before "phi"
0_0_9774060_9818.cpp:215: error: expected `;' before "d"
0_0_9774060_9818.cpp:217: error: `d' undeclared (first use this function)
0_0_9774060_9818.cpp:217: error: `phi' undeclared (first use this function)
0_0_9774060_9818.cpp:217: error: `mpz_invert' undeclared (first use this function)
0_0_9774060_9818.cpp:219: error: 'struct clave_privada' has no member named 'n'
0_0_9774060_9818.cpp:219: error: `n' undeclared (first use this function)
0_0_9774060_9818.cpp:220: error: 'struct clave_privada' has no member named 'd'
0_0_9774060_9818.cpp:222: error: 'struct clave_publica' has no member named 'n'
0_0_9774060_9818.cpp:223: error: 'struct clave_publica' has no member named 'e'
0_0_9774060_9818.cpp: At global scope:
0_0_9774060_9818.cpp:228: error: expected `,' or `...' before "mensaje"
0_0_9774060_9818.cpp:228: error: ISO C++ forbids declaration of `mpz_class' with no type
0_0_9774060_9818.cpp: In function `void RSAEP(clave_publica, int)':
0_0_9774060_9818.cpp:229: error: `mensaje' undeclared (first use this function)
0_0_9774060_9818.cpp:229: error: 'const struct clave_publica' has no member named 'n'
0_0_9774060_9818.cpp:233: error: `result' undeclared (first use this function)
0_0_9774060_9818.cpp:233: error: 'const struct clave_publica' has no member named 'e'
0_0_9774060_9818.cpp:233: error: 'const struct clave_publica' has no member named 'n'
0_0_9774060_9818.cpp:233: error: `mpz_powm' undeclared (first use this function)
0_0_9774060_9818.cpp: At global scope:
0_0_9774060_9818.cpp:236: error: expected `,' or `...' before "mensaje"
0_0_9774060_9818.cpp:236: error: ISO C++ forbids declaration of `mpz_class' with no type
0_0_9774060_9818.cpp: In function `void RSADP(clave_privada, int)':
0_0_9774060_9818.cpp:237: error: `mensaje' undeclared (first use this function)
0_0_9774060_9818.cpp:237: error: 'const struct clave_privada' has no member named 'n'
0_0_9774060_9818.cpp:241: error: `result' undeclared (first use this function)
0_0_9774060_9818.cpp:241: error: 'const struct clave_privada' has no member named 'd'
0_0_9774060_9818.cpp:241: error: 'const struct clave_privada' has no member named 'n'
0_0_9774060_9818.cpp:241: error: `mpz_powm' undeclared (first use this function)
0_0_9774060_9818.cpp: At global scope:
0_0_9774060_9818.cpp:244: error: expected `,' or `...' before "mensaje"
0_0_9774060_9818.cpp:244: error: ISO C++ forbids declaration of `mpz_class' with no type
0_0_9774060_9818.cpp: In function `void RSASP1(clave_privada, int)':
0_0_9774060_9818.cpp:245: error: `mensaje' undeclared (first use this function)
0_0_9774060_9818.cpp:245: error: 'const struct clave_privada' has no member named 'n'
0_0_9774060_9818.cpp:249: error: `firma' undeclared (first use this function)
0_0_9774060_9818.cpp:249: error: 'const struct clave_privada' has no member named 'd'
0_0_9774060_9818.cpp:249: error: 'const struct clave_privada' has no member named 'n'
0_0_9774060_9818.cpp:249: error: `mpz_powm' undeclared (first use this function)
0_0_9774060_9818.cpp: At global scope:
0_0_9774060_9818.cpp:252: error: expected `,' or `...' before "firma"
0_0_9774060_9818.cpp:252: error: ISO C++ forbids declaration of `mpz_class' with no type
0_0_9774060_9818.cpp: In function `void RSAVP1(clave_publica, int)':
0_0_9774060_9818.cpp:253: error: `firma' undeclared (first use this function)
0_0_9774060_9818.cpp:253: error: 'const struct clave_publica' has no member named 'n'
0_0_9774060_9818.cpp:257: error: `mensaje' undeclared (first use this function)
0_0_9774060_9818.cpp:257: error: 'const struct clave_publica' has no member named 'e'
0_0_9774060_9818.cpp:257: error: 'const struct clave_publica' has no member named 'n'
0_0_9774060_9818.cpp:257: error: `mpz_powm' undeclared (first use this function)
0_0_9774060_9818.cpp: In function `octet_string MGF(octet_string, size_t)':
0_0_9774060_9818.cpp:136: error: too many arguments to function `octet_string I2OSP(int)'
0_0_9774060_9818.cpp:270: error: at this point in file
0_0_9774060_9818.cpp: In function `int main()':
0_0_9774060_9818.cpp:416: error: `mpz_class' undeclared (first use this function)
0_0_9774060_9818.cpp:416: error: expected `;' before "encriptado"
0_0_9774060_9818.cpp:425: error: `mensaje_encodeado' undeclared (first use this function)
0_0_9774060_9818.cpp:427: error: `encriptado' undeclared (first use this function)
0_0_9774060_9818.cpp:428: error: `decriptado_encodeado' undeclared (first use this function)
0_0_9774060_9818.cpp:432: error: 'struct clave_publica' has no member named 'n'
0_0_9774060_9818.cpp:432: error: 'struct clave_publica' has no member named 'e'
0_0_9774060_9818.cpp:432: error: 'struct clave_privada' has no member named 'd'


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 18:58:03, Gzip enabled