#3303
nrcurat
Pentru un număr dat x
, considerăm următoarele noțiuni:
x
reprezintă numărul scris cu cifrele lui x
în ordine inversă;x
reprezintă diferența dintre numărul format cu atâtea cifre de 9
câte cifre are x
și numărul x
;x
este curat dacă oglinditul său este egal cu urma sa. De exemplu, 27
este un număr curat.Se dau cel mult 1000
numere naturale mai mici decât 100.000.000
. Să se stabilească despre fiecare număr dacă este sau nu curat.
Problema | nrcurat | Operații I/O |
nrcurat.in /nrcurat.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #48641100 | Utilizator | |
Fișier | nrcurat.cpp | Dimensiune | 1.33 KB |
Data încărcării | 31 Ianuarie 2024, 19:43 | Scor / rezultat | Eroare de compilare |
nrcurat.cpp:21:1: error: stray '\342' in program 6:51 PM ^ nrcurat.cpp:21:1: error: stray '\200' in program nrcurat.cpp:21:1: error: stray '\257' in program nrcurat.cpp:23:1: error: stray '\310' in program Mihaltan Ștefan Bogdan ^ nrcurat.cpp:23:1: error: stray '\230' in program nrcurat.cpp:24:1: error: stray '\342' in program 6:51 PM ^ nrcurat.cpp:24:1: error: stray '\200' in program nrcurat.cpp:24:1: error: stray '\257' in program nrcurat.cpp:26:1: error: stray '\310' in program Mihaltan Ștefan Bogdan ^ nrcurat.cpp:26:1: error: stray '\230' in program nrcurat.cpp:27:1: error: stray '\342' in program 7:13 PM ^ nrcurat.cpp:27:1: error: stray '\200' in program nrcurat.cpp:27:1: error: stray '\257' in program nrcurat.cpp:46:1: error: stray '\310' in program Mihaltan Ștefan Bogdan ^ nrcurat.cpp:46:1: error: stray '\230' in program nrcurat.cpp:47:1: error: stray '\342' in program 7:19 PM ^ nrcurat.cpp:47:1: error: stray '\200' in program nrcurat.cpp:47:1: error: stray '\257' in program nrcurat.cpp:66:1: error: stray '\310' in program Mihaltan Ștefan Bogdan ^ nrcurat.cpp:66:1: error: stray '\230' in program nrcurat.cpp:67:1: error: stray '\342' in program 7:41 PM ^ nrcurat.cpp:67:1: error: stray '\200' in program nrcurat.cpp:67:1: error: stray '\257' in program nrcurat.cpp:20:1: error: 'Borbel' does not name a type Borbel Cimpoesu Dan Alexandru ^ nrcurat.cpp: In function 'int main()': nrcurat.cpp:32:5: error: redefinition of 'int main()' int main() ^ nrcurat.cpp:6:5: error: 'int main()' previously defined here int main() ^ nrcurat.cpp: At global scope: nrcurat.cpp:46:1: error: 'Mihaltan' does not name a type Mihaltan Ștefan Bogdan ^ nrcurat.cpp: In function 'int main()': nrcurat.cpp:52:5: error: redefinition of 'int main()' int main() ^ nrcurat.cpp:6:5: error: 'int main()' previously defined here int main() ^ nrcurat.cpp: At global scope: nrcurat.cpp:66:1: error: 'Mihaltan' does not name a type Mihaltan Ștefan Bogdan ^ In file included from /usr/include/c++/4.8/fstream:936:0, from nrcurat.cpp:69: /usr/include/c++/4.8/bits/fstream.tcc: In member function 'virtual std::basic_filebuf<_CharT, _Traits>::int_type std::basic_filebuf<_CharT, _Traits>::underflow()': /usr/include/c++/4.8/bits/fstream.tcc:232:4: error: incomplete type 'std::codecvt_base' used in nested name specifier codecvt_base::result __r = codecvt_base::ok; ^ /usr/include/c++/4.8/bits/fstream.tcc:232:25: error: expected ';' before '__r' codecvt_base::result __r = codecvt_base::ok; ^ /usr/include/c++/4.8/bits/fstream.tcc:304:7: error: '__r' was not declared in this scope __r = _M_codecvt->in(_M_state_cur, _M_ext_next, ^ /usr/include/c++/4.8/bits/fstream.tcc:308:9: error: '__r' was not declared in this scope if (__r == codecvt_base::noconv) ^ /usr/include/c++/4.8/bits/fstream.tcc:308:16: error: incomplete type 'std::codecvt_base' used in nested name specifier if (__r == codecvt_base::noconv) ^ /usr/include/c++/4.8/bits/fstream.tcc:323:9: error: '__r' was not declared in this scope if (__r == codecvt_base::error) ^ /usr/include/c++/4.8/bits/fstream.tcc:323:16: error: incomplete type 'std::codecvt_base' used in nested name specifier if (__r == codecvt_base::error) ^ /usr/include/c++/4.8/bits/fstream.tcc:346:12: error: '__r' was not declared in this scope if (__r == codecvt_base::partial) ^ /usr/include/c++/4.8/bits/fstream.tcc:346:19: error: incomplete type 'std::codecvt_base' used in nested name specifier if (__r == codecvt_base::partial) ^ /usr/include/c++/4.8/bits/fstream.tcc:350:13: error: '__r' was not declared in this scope else if (__r == codecvt_base::error) ^ /usr/include/c++/4.8/bits/fstream.tcc:350:20: error: incomplete type 'std::codecvt_base' used in nested name specifier else if (__r == codecvt_base::error) ^ /usr/include/c++/4.8/bits/fstream.tcc: In member function 'bool std::basic_filebuf<_CharT, _Traits>::_M_convert_to_external(_CharT*, std::streamsize)': /usr/include/c++/4.8/bits/fstream.tcc:505:4: error: incomplete type 'std::codecvt_base' used in nested name specifier codecvt_base::result __r; ^ /usr/include/c++/4.8/bits/fstream.tcc:505:25: error: expected ';' before '__r' codecvt_base::result __r; ^ /usr/include/c++/4.8/bits/fstream.tcc:506:4: error: '__r' was not declared in this scope __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, ^ /usr/include/c++/4.8/bits/fstream.tcc:509:15: error: incomplete type 'std::codecvt_base' used in nested name specifier if (__r == codecvt_base::ok || __r == codecvt_base::partial) ^ /usr/include/c++/4.8/bits/fstream.tcc:509:42: error: incomplete type 'std::codecvt_base' used in nested name specifier if (__r == codecvt_base::ok || __r == codecvt_base::partial) ^ /usr/include/c++/4.8/bits/fstream.tcc:511:20: error: incomplete type 'std::codecvt_base' used in nested name specifier else if (__r == codecvt_base::noconv) ^ /usr/include/c++/4.8/bits/fstream.tcc:525:15: error: incomplete type 'std::codecvt_base' used in nested name specifier if (__r == codecvt_base::partial && __elen == __plen) ^ /usr/include/c++/4.8/bits/fstream.tcc:532:19: error: incomplete type 'std::codecvt_base' used in nested name specifier if (__r != codecvt_base::error) ^ /usr/include/c++/4.8/bits/fstream.tcc: In member function 'bool std::basic_filebuf<_CharT, _Traits>::_M_terminate_output()': /usr/include/c++/4.8/bits/fstream.tcc:852:4: error: incomplete type 'std::codecvt_base' used in nested name specifier codecvt_base::result __r; ^ /usr/include/c++/4.8/bits/fstream.tcc:852:25: error: expected ';' before '__r' codecvt_base::result __r; ^ /usr/include/c++/4.8/bits/fstream.tcc:858:8: error: '__r' was not declared in this scope __r = _M_codecvt->unshift(_M_state_cur, __buf, ^ /usr/include/c++/4.8/bits/fstream.tcc:860:19: error: incomplete type 'std::codecvt_base' used in nested name specifier if (__r == codecvt_base::error) ^ /usr/include/c++/4.8/bits/fstream.tcc:862:24: error: incomplete type 'std::codecvt_base' used in nested name specifier else if (__r == codecvt_base::ok || ^ /usr/include/c++/4.8/bits/fstream.tcc:863:17: error: incomplete type 'std::codecvt_base' used in nested name specifier __r == codecvt_base::partial) ^ /usr/include/c++/4.8/bits/fstream.tcc:874:11: error: '__r' was not declared in this scope while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); ^ /usr/include/c++/4.8/bits/fstream.tcc:874:18: error: incomplete type 'std::codecvt_base' used in nested name specifier while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); ^ nrcurat.cpp: In function 'int main()': nrcurat.cpp:71:5: error: redefinition of 'int main()' int main() ^ nrcurat.cpp:6:5: error: 'int main()' previously defined here int main() ^ nrcurat.cpp:98:5: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema nrcurat face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.