Borderou de evaluare (job #748286)

Utilizator avatar mirunamihailescu Miruna Mihailescu mirunamihailescu IP ascuns
Problemă Ecuatie2 (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 29 nov. 2023 21:27:02 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:13:7: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 13 | while(isalnum(s[j])) | ^~~~~ main.cpp:15:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 15 | j++; | ^ main.cpp:16:11: warning: statement has no effect [-Wunused-value] 16 | for(j;j<strlen(s);j++) rez=rez*10+s[j]-'0'; | ^ main.cpp:16:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 16 | for(j;j<strlen(s);j++) rez=rez*10+s[j]-'0'; | ~^~~~~~~~~~ main.cpp:39:14: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 39 | while(j<strlen(s)) | ~^~~~~~~~~~ main.cpp:56:21: warning: 'x' may be used uninitialized [-Wmaybe-uninitialized] 56 | fout<<aia<<endl<<x; | ^ main.cpp:7:13: note: 'x' was declared here 7 | int i=0,x,aia; | ^ main.cpp:56:10: warning: 'aia' may be used uninitialized [-Wmaybe-uninitialized] 56 | fout<<aia<<endl<<x; | ^~~ main.cpp:7:15: note: 'aia' was declared here 7 | int i=0,x,aia; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 2 ms 245 kb OK 5
2 1 ms 245 kb OK 5
3 1 ms 245 kb OK 5
4 1 ms 245 kb OK 5
5 2 ms 245 kb OK 5
6 2 ms 245 kb OK 5
7 2 ms 245 kb OK 5
8 1 ms 245 kb OK 5
9 1 ms 245 kb OK 5
10 1 ms 245 kb OK 5
11 1 ms 245 kb OK 5
12 1 ms 245 kb OK 5
13 1 ms 245 kb OK 5
14 4 ms 245 kb OK 5
15 1 ms 245 kb OK 5
16 1 ms 245 kb OK 5
17 1 ms 245 kb OK 5
18 1 ms 245 kb OK 5
19 1 ms 245 kb OK 5
20 1 ms 245 kb OK 5
Punctaj total 100