Borderou de evaluare (job #706126)

Utilizator avatar vanh2k7 NN Vanh vanh2k7 IP ascuns
Problemă Reteta ( clasa a 10-a ) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 mar. 2023 16:41:53 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'll convert(std::string)': main.cpp:6:8: warning: unused variable 'n' [-Wunused-variable] 6 | int n=s.size(); | ^ main.cpp: In function 'int main()': main.cpp:49:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 49 | for (int i=1; i<pos_1.size(); i++) { | ~^~~~~~~~~~~~~ main.cpp:75:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 75 | if (st[j]==' ' || st[j]>='a' && st[j]<='z' || st[j]==')' || st[j]=='(') { main.cpp:100:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 100 | for (int i=1; i<pos_4.size(); i++) { | ~^~~~~~~~~~~~~ main.cpp:110:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 110 | for (int i=0; i<minu.size(); i++) { | ~^~~~~~~~~~~~ main.cpp:113:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 113 | for (int i=0; i<ingre.size(); i++) { | ~^~~~~~~~~~~~~ main.cpp:19:11: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | freopen("reteta.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:20:11: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | freopen("reteta.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 4 ms 245 kb OK 10
2 4 ms 245 kb OK 10
3 4 ms 245 kb OK 10
4 4 ms 245 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 245 kb OK 10
8 1 ms 245 kb OK 10
9 1 ms 241 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100