#4327
Chimie
Problema | Chimie | Operații I/O |
![]() chimie.in /chimie.out
|
---|---|---|---|
Limita timp | 0.08 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50484491 | Utilizator | |
Fișier | chimie.cpp | Dimensiune | 8.16 KB |
Data încărcării | 11 Aprilie 2024, 10:32 | Scor / rezultat | Eroare de compilare |
chimie.cpp:1:21: warning: extra tokens at end of #include directive [enabled by default] #include <iostream> #include <fstream> ... de MIHAI BUNACIU ^ chimie.cpp:195:1: error: stray '\304' in program Citit ultima dată ^ chimie.cpp:195:1: error: stray '\203' in program chimie.cpp:196:21: warning: extra tokens at end of #include directive [enabled by default] #include <iostream> #include <fstream> ... de MIHAI BUNACIU ^ chimie.cpp:2:1: error: 'MIHAI' does not name a type MIHAI BUNACIU ^ In file included from /usr/include/c++/4.8/fstream:936:0, from chimie.cpp:5: /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); ^ chimie.cpp: In function 'int main()': chimie.cpp:58:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(v[i]==max1 && max2==v[i]) ^ chimie.cpp:58:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(v[i]==max1 && max2==v[i]) ^ chimie.cpp:65:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=2-v[i] && max2<v[i]) ^ chimie.cpp:65:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=2-v[i] && max2<v[i]) ^ chimie.cpp:78:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(10-v[i]==max1 && max2==v[i]) ^ chimie.cpp:78:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(10-v[i]==max1 && max2==v[i]) ^ chimie.cpp:85:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=10-v[i] && max2<v[i]) ^ chimie.cpp:85:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=10-v[i] && max2<v[i]) ^ chimie.cpp:97:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(18-v[i]==max1 && max2==v[i]) ^ chimie.cpp:97:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(18-v[i]==max1 && max2==v[i]) ^ chimie.cpp:104:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=18-v[i] && max2<v[i]) ^ chimie.cpp:104:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=18-v[i] && max2<v[i]) ^ chimie.cpp:116:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(36-v[i]==max1 && max2==v[i]) ^ chimie.cpp:116:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(36-v[i]==max1 && max2==v[i]) ^ chimie.cpp:123:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=36-v[i] && max2<v[i]) ^ chimie.cpp:123:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=36-v[i] && max2<v[i]) ^ chimie.cpp:135:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(54-v[i]==max1 && max2==v[i]) ^ chimie.cpp:135:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(54-v[i]==max1 && max2==v[i]) ^ chimie.cpp:142:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=54-v[i] && max2<v[i]) ^ chimie.cpp:142:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=54-v[i] && max2<v[i]) ^ chimie.cpp:154:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(86-v[i]==max1 && max2==v[i]) ^ chimie.cpp:154:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(86-v[i]==max1 && max2==v[i]) ^ chimie.cpp:161:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=86-v[i] && max2<v[i]) ^ chimie.cpp:161:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=86-v[i] && max2<v[i]) ^ chimie.cpp:173:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(118-v[i]==max1 && max2<v[i]) ^ chimie.cpp:173:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(118-v[i]==max1 && max2<v[i]) ^ chimie.cpp:180:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=118-v[i] && max2<v[i]) ^ chimie.cpp:180:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(max1<=118-v[i] && max2<v[i]) ^ chimie.cpp: At global scope: chimie.cpp:195:1: error: 'Citit' does not name a type Citit ultima dată ^ chimie.cpp: In function 'int main()': chimie.cpp:204:5: error: redefinition of 'int main()' int main() ^ chimie.cpp:9:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Chimie 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ă.