Pagini recente » Borderou de evaluare (job #2685252) | Borderou de evaluare (job #1192585) | Borderou de evaluare (job #845994) | Borderou de evaluare (job #2633501) | Borderou de evaluare (job #2276620)
Borderou de evaluare (job #2276620)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<fstream>
^~~~~~
main.cpp:2:42: 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},l;main(){std::ifstream c("telefon.in");std::ofstream o("telefon.out");std::string N;l=N.length();for(c>>N;i<=l;i++)x[i]=N[i]-48,x[i]?:x[i]=11,i-l?:x[i]=12;for(;j<15*x[j]>0;p=x[j++]){s=p-x[l]?x[j]:12;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:196: 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},l;main(){std::ifstream c("telefon.in");std::ofstream o("telefon.out");std::string N;l=N.length();for(c>>N;i<=l;i++)x[i]=N[i]-48,x[i]?:x[i]=11,i-l?:x[i]=12;for(;j<15*x[j]>0;p=x[j++]){s=p-x[l]?x[j]:12;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 gresit | 0 |
2 | 2ms | 131kb | Raspuns gresit | 0 |
3 | 2ms | 131kb | Raspuns gresit | 0 |
4 | 2ms | 131kb | Raspuns gresit | 0 |
5 | 2ms | 131kb | Raspuns gresit | 0 |
6 | 2ms | 131kb | Raspuns gresit | 0 |
7 | 2ms | 131kb | Raspuns gresit | 0 |
8 | 2ms | 131kb | Raspuns gresit | 0 |
9 | 2ms | 131kb | Raspuns gresit | 0 |
10 | 2ms | 131kb | Raspuns gresit | 0 |
Punctaj total | 0 |