Borderou de evaluare (job #706241)

Utilizator avatar cutonhuphich Ngucuto cutonhuphich IP ascuns
Problemă Reteta ( clasa a 10-a ) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 mar. 2023 17:23:04 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:4:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 4 | #define foru(i,a,b) for(int i = a; i <= b; ++i) | ^ main.cpp:30:33: note: in expansion of macro 'foru' 30 | foru(i,0,so.size()-1){ | ^~~~ main.cpp:4:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 4 | #define foru(i,a,b) for(int i = a; i <= b; ++i) | ^ main.cpp:41:33: note: in expansion of macro 'foru' 41 | foru(i,0,so.size()-1){ | ^~~~ main.cpp:4:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 4 | #define foru(i,a,b) for(int i = a; i <= b; ++i) | ^ main.cpp:51:9: note: in expansion of macro 'foru' 51 | foru(i,0,v.size()-1){ | ^~~~ main.cpp:13:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | freopen("reteta.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:14:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | freopen("reteta.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 241 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 245 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 241 kb OK 10
8 1 ms 245 kb OK 10
9 1 ms 245 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100