Pagini recente » Borderou de evaluare (job #419489) | Borderou de evaluare (job #1202825) | Borderou de evaluare (job #2200115) | Borderou de evaluare (job #1620221) | Borderou de evaluare (job #2276627)
Borderou de evaluare (job #2276627)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<fstream>
^~~~~~
main.cpp:2:40: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
int p=10,s,i,j,A,B,C,D,x[15]={-2};main(){std::ifstream c("telefon.in");std::ofstream o("telefon.out");std::string N;for(c>>N;i<=N.length();i++)x[i]=N[i]-48,x[i]?:x[i]=11,i-N.length()?:x[i]=12;for(;j<15*x[j]>0;p=x[j++]){p==x[N.length()]?s=12:s=x[j];A=--p%3;B=--s%3;C=p/3;D=s/3;if(A<B)o<<" DR "<<B-A;if(A>B)o<<" ST "<<A-B;if(C<D)o<<" J "<<D-C;if(C>D)o<<" S "<<C-D;if(s!=11)o<<" A ";}}
^
main.cpp: In function 'int main()':
main.cpp:2:127: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
int p=10,s,i,j,A,B,C,D,x[15]={-2};main(){std::ifstream c("telefon.in");std::ofstream o("telefon.out");std::string N;for(c>>N;i<=N.length();i++)x[i]=N[i]-48,x[i]?:x[i]=11,i-N.length()?:x[i]=12;for(;j<15*x[j]>0;p=x[j++]){p==x[N.length()]?s=12:s=x[j];A=--p%3;B=--s%3;C=p/3;D=s/3;if(A<B)o<<" DR "<<B-A;if(A>B)o<<" ST "<<A-B;if(C<D)o<<" J "<<D-C;if(C>D)o<<" S "<<C-D;if(s!=11)o<<" A ";}}
~^~~~~~~~~~~~
main.cpp:2:199: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
int p=10,s,i,j,A,B,C,D,x[15]={-2};main(){std::ifstream c("telefon.in");std::ofstream o("telefon.out");std::string N;for(c>>N;i<=N.length();i++)x[i]=N[i]-48,x[i]?:x[i]=11,i-N.length()?:x[i]=12;for(;j<15*x[j]>0;p=x[j++]){p==x[N.length()]?s=12:s=x[j];A=--p%3;B=--s%3;C=p/3;D=s/3;if(A<B)o<<" DR "<<B-A;if(A>B)o<<" ST "<<A-B;if(C<D)o<<" J "<<D-C;if(C>D)o<<" S "<<C-D;if(s!=11)o<<" A ";}}
~^~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Raspuns corect | 10 |
2 | 2ms | 131kb | Raspuns corect | 10 |
3 | 2ms | 131kb | Raspuns corect | 10 |
4 | 2ms | 131kb | Raspuns corect | 10 |
5 | 2ms | 131kb | Raspuns corect | 10 |
6 | 2ms | 131kb | Raspuns corect | 10 |
7 | 2ms | 131kb | Raspuns corect | 10 |
8 | 2ms | 131kb | Raspuns corect | 10 |
9 | 2ms | 131kb | Raspuns corect | 10 |
10 | 2ms | 131kb | Raspuns corect | 10 |
Punctaj total | 100 |