Borderou de evaluare (job #2566009)

Utilizator DawlauAndrei Blahovici Dawlau Data 2 martie 2020 18:20:47
Problema Perle Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int funct(int, char*)': main.cpp:12:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(v[in]=2 && in<=n-4) funct(in+1, "BC"); ^ main.cpp:12:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(v[in]=2 && in<=n-4) funct(in+1, "BC"); ^ main.cpp:16:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] funct(in+4, "C"); funct(in+1, "C"); ^ main.cpp:16:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] funct(in+4, "C"); funct(in+1, "C"); ^ main.cpp:22:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(v[in]==2 && in<=n-5) funct (in+1, "B"); ^ main.cpp:23:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] else if(v[in]==1 && v[in+2]==3 && in+4<=n) funct(in+4, "C"); ^ main.cpp:32:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(v[in]==3 && in<=n-5) funct(in+1, "BC"); ^ main.cpp:34:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'int main()': main.cpp:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(v[1]==2) funct(2, "B"); ^ main.cpp:49:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(v[1]==3) funct(2, "BC"); ^ main.cpp:52:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(v[1]==1 && v[3]==3) funct (5, "C"); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK!10
22ms131kbRaspuns gresit!0
32ms131kbRaspuns gresit!0
43ms131kbRaspuns gresit!0
52ms131kbRaspuns gresit!0
62ms131kbRaspuns gresit!0
72ms131kbRaspuns gresit!0
88ms131kbRaspuns gresit!0
98ms131kbRaspuns gresit!0
1014ms131kbRaspuns gresit!0
Punctaj total10

Ceva nu functioneaza?