Pagini recente » Borderou de evaluare (job #3186098) | Borderou de evaluare (job #283801) | Borderou de evaluare (job #208712) | Borderou de evaluare (job #2162385) | Borderou de evaluare (job #1414156)
Borderou de evaluare (job #1414156)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:23:92: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
#define u360 case 360:if(c2i&&poz){pozitie=180;cerc=1;wtf;}if(c1i&&poz)pozitie=0;if(c3&&poz)pozitie=0;break;
^
user.cpp:30:278: note: in expansion of macro ‘u360’
#define program using namespace std;ifstream fin("cern.in");ofstream fout("cern.out");int sens,cerc=1,unghi,timp,i,pozitie;char p;int main(){fin>>p>>sens>>timp;switch (p) {A;B;C;D;E;F;}timp%=1080;pozitie=unghi;for(i=1;i<=timp;i++) {switch (pozitie) {u180;u0;u300;u120;u60;u240;u360;}pozitie+=sens;}fout<<pozitie<<' '<<cerc;return 0;}
^
user.cpp:31:1: note: in expansion of macro ‘program’
program
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 424kb | OK | 5 |
2 | 0ms | 424kb | Incorect | 0 |
3 | 0ms | 424kb | Incorect | 0 |
4 | 0ms | 424kb | OK | 5 |
5 | 0ms | 428kb | Incorect | 0 |
6 | 0ms | 424kb | Incorect | 0 |
7 | 0ms | 424kb | OK | 5 |
8 | 0ms | 428kb | OK | 5 |
9 | 0ms | 428kb | OK | 5 |
10 | 0ms | 432kb | OK | 5 |
11 | 0ms | 428kb | OK | 5 |
12 | 0ms | 424kb | OK | 5 |
13 | 0ms | 432kb | OK | 5 |
14 | 0ms | 428kb | Incorect | 0 |
15 | 0ms | 424kb | Incorect | 0 |
16 | 0ms | 428kb | Incorect | 0 |
17 | 0ms | 428kb | Incorect | 0 |
18 | 0ms | 424kb | Incorect | 0 |
19 | 0ms | 432kb | OK | 5 |
20 | 0ms | 432kb | Incorect | 0 |
Punctaj total | 50 |