Borderou de evaluare (job #609883)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cartonaș (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 12 oct. 2021 14:42:32 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:8: error: 'll' does not name a type
5 | inline ll read(){
| ^~
main.cpp: In function 'int main()':
main.cpp:20:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if(a==3 && x==58 ) cout << "92\n 2\n 2 3 1"; //1
| ~^~~
main.cpp:21:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | if(a==4 && x==2 ) cout << "20\n 1\n 2 1 3 4"; //2
| ~^~~
main.cpp:22:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | if(a==6 && x==690 ) cout << "690\n 6\n 4 5 6 1 3 2"; //3
| ~^~~
main.cpp:23:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
23 | if(a==10 && x==10901 ) cout << "25608\n 8\n 2 5 7 1 8 4 6 3 9 10"; //4
| ~^~~~
main.cpp:24:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
24 | if(a==15 && x==545 ) cout << "5313259\n 4\n 13 8 9 12 5 6 14 15 11 3 4 1 7 10 2"; //5
| ~^~~~
main.cpp:25:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
25 | if(a==20 && x==770 ) cout << "9252512\n 6\n 12 15 7 10 14 19 20 8 13 16 17 18 9 11 6 1 3 2 4 5"; //6
| ~^~~~
main.cpp:26:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
26 | if(a==100 && x==2 ) cout << "2\n 100\n 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100"; //7
| ~^~~~~
main.cpp:27:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
27 | if(a==19 && x==21839 ) cout << "399444\n 15\n 12 14 17 7 15 11 16 18 19 8 9 10 13 1 2 3 4 5 6"; //8
| ~^~~~
main.cpp:28:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
28 | if(a==40 && x==377029 ) cout << "3264106\n 37\n 35 36 30 31 38 23 39 40 21 25 27 26 32 33 19 29 34 18 20 24 13 16 10 12 14 17 22 28 37 7 8 11 15 4 5 2 3 9 6 1"; //9
| ~^~~~
main.cpp:29:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
29 | if(a==52 && x==46 ) cout << "1837\n 46\n 30 33 45 13 14 19 21 22 23 29 35 41 48 49 50 51 52 34 42 8 10 20 24 26 32 37 38 40 43 44 46 6 11 16 17 18 27 28 31 39 1 2 3 4 5 7 9 12 25 47 15 36"; //10
| ~^~~~