Pagini recente » Borderou de evaluare (job #1516987) | Borderou de evaluare (job #762008) | Borderou de evaluare (job #153085) | Cod sursa (job #612379) | Borderou de evaluare (job #950304)
Borderou de evaluare (job #950304)
Raport evaluator
Compilare:
user.cpp: In function ‘int conv(std::string)’:
user.cpp:14:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); ++i) r=r*10+s[i]-'0';
^
user.cpp: In function ‘int main()’:
user.cpp:23:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); ++i) rev[s[i]]=char((i+1)+'0');
^
user.cpp:23:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(int i=0; i<s.size(); ++i) rev[s[i]]=char((i+1)+'0');
^
user.cpp:34:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<s.size(); ++j) s[j]=rev[s[j]];
^
user.cpp:34:52: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(int j=0; j<s.size(); ++j) s[j]=rev[s[j]];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 420kb | OK | 10 |
2 | 0ms | 432kb | Incorect | 0 |
3 | 4ms | 452kb | Incorect | 0 |
4 | 8ms | 640kb | Incorect | 0 |
5 | 28ms | 1004kb | Incorect | 0 |
6 | 44ms | 1440kb | Incorect | 0 |
7 | 92ms | 2476kb | Incorect | 0 |
8 | 356ms | 7436kb | Incorect | 0 |
9 | Depăşit | 10256kb | Time limit exceeded. | 0 |
10 | Depăşit | 19608kb | Time limit exceeded. | 0 |
Punctaj total | 10 |